Get startedGet started for free

Survey-weighted scatter plots

In scatter plots, we can also account for the sampling design through the saturation of color or the transparency of the points. Let's see how these forms change the look of our scatter plot of height versus weight among 20 year olds.

This exercise is part of the course

Analyzing Survey Data in R

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Construct a scatter plot
ggplot(data = ___,
       mapping = aes(___)) + 
	geom_point() + 
    guides(___ = "none")
Edit and Run Code