Learn R Programming

⚠️There's a newer version (1.1.3) of this package.Take me there.

cowplot (version 0.4.0)

Streamlined Plot Theme and Plot Annotations for 'ggplot2'

Description

Some helpful extensions and modifications to the 'ggplot2' library. In particular, this package makes it easy to combine multiple 'ggplot2' plots into one and label them with letters, e.g. A, B, C, etc., as is often required for scientific publications. The package also provides a streamlined and clean theme that is used in the Wilke lab, hence the package name, which stands for Claus O. Wilke's plot library.

Copy Link

Version

Install

install.packages('cowplot')

Monthly Downloads

394,645

Version

0.4.0

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Claus O Wilke

Last Published

June 14th, 2015

Functions in cowplot (0.4.0)

plot_theme

Get theme of a ggplot2 plot
draw_text

Draw text.
plot_grid

Arrange multiple plots into a grid
ggdraw

Set up a drawing layer on top of a ggplot
draw_plot

Draw a (sub)plot.
gtable_squash_cols

Set the width of given colums to 0.
cowplot

cowplot.
theme_nothing

Create a completely empty theme
draw_grob

Draw a grob.
save_plot

Alternative to ggsave, with better support for multi-figure plots.
draw_plot_label

Draw plot label
switch_axis_position

Switches the axis position of the x or y axis in a ggplot2 plot.
ggsave

Cowplot reimplementation of ggsave.
panel_border

Add/remove the panel border in a ggplot2 plot
gtable_remove_grobs

Remove named elements from gtable
theme_cowplot

Create the default cowplot theme
gtable_squash_rows

Set the height of given rows to 0.
draw_line

Draw a line.
background_grid

Add/modify/remove the background grid in a ggplot2 plot