R Comparing Frequency Distributions 8/12

, ,

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 the Weight 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.

1 Like

Hi @jenka13all,

Thank you for letting us know about it. I will get it logged.

Best,
Sahil

1 Like