Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exercise 3.2.5 requires a minor change to be correct #600

Open
mubangansofu opened this issue Apr 10, 2021 · 1 comment
Open

Exercise 3.2.5 requires a minor change to be correct #600

mubangansofu opened this issue Apr 10, 2021 · 1 comment

Comments

@mubangansofu
Copy link

Based on the Exercise question, the ordinate should be class, hence our code should swap the positions of x and y. One can write

mpg %>%
ggplot()+
geom_point(aes(drv,class))

or

ggplot(mpg, aes(x = drv, y = class)) +
geom_point()

@11learner
Copy link

@mubangansofu Thank you so much for pointing this out. :)
Initially, I got confused since in exercise 3.2.5 it says "[..] class vs drv [...]".
Thus, the variable "drv" should be plotted on the horizontal bar and the variable "class" on the vertical bar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants