September 2018
Beginner
206 pages
4h 27m
English
Let's now create bar charts using the dodge and fill bar chart position aesthetic options.
ggplot(msleep, aes(vore, fill = conservation)) + geom_bar(position = "dodge")
ggplot(msleep, aes(vore, fill = conservation)) + geom_bar(position = "fill")
Output: The following is the output we get when we execute the code ...
Read now
Unlock full access