Categorical Data in the Tidyverse
Emily Robinson
Data Scientist
ggplot(mtcars, aes(disp, mpg)) + geom_point() +
labs(x = "x axis label", y = "y axis label", title = "My title",
subtitle = "and a subtitle", caption = "even a caption!")
initial_plot + geom_text(aes(label = round(mean_mpg)))
initial_plot +
geom_text(aes(label = round(mean_mpg), y = mean_mpg + 2))
initial_plot +
geom_text(aes(label = round(mean_mpg), y = mean_mpg + 2)) +
theme(axis.text.x = element_blank(), axis.ticks.x = element_blank())
Categorical Data in the Tidyverse