Learn R Programming

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

cowplot (version 0.6.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.6.0

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Claus O Wilke

Last Published

December 19th, 2015

Functions in cowplot (0.6.0)

gtable_squash_rows

Set the height of given rows to 0.
gtable_remove_grobs

Remove named elements from gtable
draw_line

Draw a line.
draw_plot

Draw a (sub)plot.
save_plot

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

Create the default cowplot theme
plot_grid

Arrange multiple plots into a grid
ggsave

Cowplot reimplementation of ggsave.
plot_theme

Get theme of a ggplot2 plot
ggdraw

Set up a drawing layer on top of a ggplot
draw_text

Draw text.
panel_border

Add/remove the panel border in a ggplot2 plot
draw_plot_label

Draw plot label
switch_axis_position

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

Set the width of given colums to 0.
draw_label

Draw a text label or mathematical expression.
draw_grob

Draw a grob.
background_grid

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

Create a completely empty theme
cowplot

cowplot.
add_sub

Add annotation underneath a plot