You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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.
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()
The text was updated successfully, but these errors were encountered: