ggplot2
Although some of the most frequently used graph types (geoms) are described above, some other commonly used geoms include:
geom_density()
: for density estimatesgeom_dotplot()
: for dot-plotsgeom_violin()
: for making violin plotsgeom_jitter()
: for dealing with overplotting.There are also many extra add-ons (layers) that you can add to your plots using the following functions:
geom_abline()
, geom_hline()
, geom_vline()
: for adding customizable reference linesgeom_errorbar()
: for adding error barsgeom_smooth()
: for adding regression lines and other conditional meanswaffle
Waffle plots (sometimes referred to as “square pie charts”) are a way of visualizing category breakdowns, where a grid of boxes is filled in with different colors to match your categories. Waffle plots can be created in R with the waffle
package. You can find examples of how to use the waffle()
function to make these plots on the R Documentation site or on R Bloggers.
ggmosaic
Mosaic plots are a way of visually displaying data from two or more categorical variables. The area of cells are used to show the frequency of observations. Mosaic plots can be created in R with the ggmosaic
package, or the vcd package.
ggmap
You can use R for a wealth of spatial analyses (not covered here), and can also use R to make quick maps. ggmap
is a package designed to follow many of the same basic principles and syntax as ggplot2
, that allows you to display spatial data. The ggmap
CRAN site has some helpful example maps, as does the R Graph Gallery.