Visualizations II: Customizing plots in ggplot2
Keywords
workshop, ggplot, data visualization, customize
Abstract
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.
https://scholarsarchive.byu.edu/facpub/6096
Document Type
Other
Publication Date
2018
Permanent URL
http://hdl.lib.byu.edu/1877/8825
Language
English
College
Humanities
Department
Linguistics
Copyright Use Information
https://lib.byu.edu/about/copyright/