Visualizations II: Customizing plots in ggplot2
workshop, ggplot, data visualization, customize
In the last workshop, we looked at the basics of data visualization and data types and introduced the library ggplot2. Specifically, we looked at scatter plots and how we can plot shapes, color, size, and text. We looked at plotting one variable, whether it be categorical with a barplot or continuous with a histogram. Finally, we looked at boxplots and violin plots, and started to show how to overlay multiple plots in one image.
Today’s workshop will focus less on the different kinds of plots and instead will show how you can modify things to suit your needs. Specifically, we’ll take a closer look at modifying colors, reordering and renaming categorical variables, adding titles, modifying axes, legends, faceting, themes, and saving plots. It sounds like a lot, but it shouldn’t be too bad. After today, you’ll go from a the basic, default plots to something you might want to include in a presentaton or paper.
BYU ScholarsArchive Citation
Stanley, Joseph A., "Visualizations II: Customizing plots in ggplot2" (2018). Faculty Publications. 6096.
Copyright Use Information