Screen Link: https://app.dataquest.io/m/398/comparing-frequency-distributions/8/scatter-plots
Your Code: Enclose your code in 3 backticks like this
to format properly:
ggplot(data = wnba,
aes(x = Pos, y = Weight, color = Pos)) +
geom_point() +
geom_jitter()
Instructions say explicitly:
Using scatter plots, examine the distribution of player weight (not height) as a function of player position. The graph should have the following properties:
- The
Pos
variable in on the x-axis and theWeight
variable on the y-axis.
What actually happened:
But the code that follows those instructions doesn’t pass the test. In the official answer, I see that the HEIGHT has been plotted as the correct answer instead of Weight. The Answer:
ggplot(data = wnba,
aes(x = Pos, y = Height, color = Pos)) +
geom_point() +
geom_jitter()
Please correct so that solution matches instructions and correct solution passes the test.