Comece agoraComece grátis

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.

Este exercicio faz parte do curso

Analyzing Survey Data in R

Ver curso

exercicio interativo prático

Tente este exercicio completando este código de exemplo.

# Add gender to plot
ggplot(data = NHANES20,
       mapping = aes(___)) + 
	geom_point(___) + 
    guides(___ = "none")
Editar e Executar Código