Chapter 4. Plotting One Variable
In this chapter, we will cover the following recipes:
Creating a simple histogram using
geom_histogram()
Creating a histogram with custom colors and bins width
Crafting and coloring area plots using
geom_area()
and moreDrawing density plots using
geom_density()
Drawing univariate colored dot plots with
geom_dotplot()
- Crafting univariate bar charts
Using
rtweet
andggplot2
to plot twitter words frequencies- Drawing publish quality density plot