Use of color in scatter plots
We often use the hue of color in a scatter plot to represent categories of a categorical variable. Let's add Gender to our scatter plots.
Latihan ini adalah bagian dari kursus
Analyzing Survey Data in R
Latihan interaktif praktis
Cobalah latihan ini dengan menyelesaikan kode contoh berikut.
# Add gender to plot
ggplot(data = NHANES20,
mapping = aes(___)) +
geom_point(___) +
guides(___ = "none")