Learn R Programming

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

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

313,888

Version

0.5.0

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

July 1st, 2015

Functions in cowplot (0.5.0)

gtable_squash_rows

Set the height of given rows to 0.
draw_plot

Draw a (sub)plot.
draw_label

Draw a text label or mathematical expression.
draw_plot_label

Draw plot label
add_sub

Add annotation underneath a plot
ggsave

Cowplot reimplementation of ggsave.
cowplot

cowplot.
draw_text

Draw text.
ggdraw

Set up a drawing layer on top of a ggplot
theme_cowplot

Create the default cowplot theme
background_grid

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

Get theme of a ggplot2 plot
draw_line

Draw a line.
plot_grid

Arrange multiple plots into a grid
theme_nothing

Create a completely empty theme
gtable_remove_grobs

Remove named elements from gtable
switch_axis_position

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

Draw a grob.
panel_border

Add/remove the panel border in a ggplot2 plot
gtable_squash_cols

Set the width of given colums to 0.
save_plot

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