September 2018
Beginner
206 pages
4h 27m
English
Let's create bar charts using the facet_wrap() and facet_grid() functions. Follow the steps below:
ggplot(msleep, aes(conservation)) + geom_bar() + facet_wrap(~vore)
ggplot(msleep, aes(conservation)) + geom_bar() + facet_grid(vore~)
Output: The following is the output we get when we execute the code in Step 1:

The following ...
Read now
Unlock full access