Provides various features that help with creating publication-quality figures with 'ggplot2', such as a set of themes, functions to align plots and arrange them into complex compound figures, and functions that make it easy to annotate plots and or mix plots with images. The package was originally written for internal use in the Wilke lab, hence the name (Claus O. Wilke's plot package). It has also been used extensively in the book Fundamentals of Data Visualization.
The cowplot package is meant to provide a publication-ready theme for ggplot2, one that requires a minimum amount of fiddling with sizes of axis labels, plot backgrounds, etc. It meets my personal needs; you may or may not like my style.
The package also fixes a couple of other annoyances that I encountered when trying to use ggplot2 for publication-ready figures, in particular with respect to combining multiple plots into one figure and labeling these plots. It turns out that the easiest way to fix these issues was to implement a general-purpose drawing canvas on top of ggplot2, so as a side effect of this work you can do pretty crazy effects with ggplot2 graphs.
This package is available on CRAN here and can be installed via
install.packages("cowplot")
You can install the latest development version of this package using the devtools package. In your R console, simply enter:
devtools::install_github("wilkelab/cowplot")
Note that cowplot is in the early stages of development. While you may find it useful for certain graphing problems you encounter, it may have major problems or undergo substantial changes in the future. In particular, at this point I make no guarantees that the default theme will remain unchanged.
To get a quick introduction to the main features of this package, read the vignettes provided with the package on CRAN.
theme_map()
. Code provided by Spencer Fox, https://github.com/sjfox.axis_canvas()
function and related functions to make
marginal plots and plot annotations simplerplot_to_gtable
function which converts most
anything into a gtable for further use with cowplotinherit.aes = FALSE
to draw functions where neededplot_grid
can now be controlled with additional position parameters label_x
and label_y
. This closes issue #32.Major changes:
Major changes:
Other changes:
Major changes:
Other changes:
Fix Vignette title
First complete implementation ready for initial release