ComeçarComece de graça

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 exercício faz parte do curso

Analyzing Survey Data in R

Ver curso

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

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