Mulai sekarangMulai gratis

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 merupakan bagian dari kursus

Analyzing Survey Data in R

Lihat Kursus

Latihan interaktif langsung praktik

Cobalah latihan ini dengan melengkapi kode contoh ini.

# Add gender to plot
ggplot(data = NHANES20,
       mapping = aes(___)) + 
	geom_point(___) + 
    guides(___ = "none")
Edit dan Jalankan Kode