LoslegenKostenlos loslegen

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.

Diese Übung ist Teil des Kurses

Analyzing Survey Data in R

Kurs anzeigen

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Add gender to plot
ggplot(data = NHANES20,
       mapping = aes(___)) + 
	geom_point(___) + 
    guides(___ = "none")
Code bearbeiten und ausführen