Learn R Programming

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

cowplot (version 0.6.1)

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

380,003

Version

0.6.1

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Claus O Wilke

Last Published

March 6th, 2016

Functions in cowplot (0.6.1)

cowplot

cowplot.
plot_grid

Arrange multiple plots into a grid
draw_grob

Draw a grob.
add_sub

Add annotation underneath a plot
draw_plot

Draw a (sub)plot.
ggdraw

Set up a drawing layer on top of a ggplot
ggsave

Cowplot reimplementation of ggsave.
background_grid

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

Draw a text label or mathematical expression.
theme_cowplot

Create the default cowplot theme
draw_line

Draw a line.
gtable_squash_cols

Set the width of given colums to 0.
panel_border

Add/remove the panel border in a ggplot2 plot
switch_axis_position

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

Create a completely empty theme
gtable_remove_grobs

Remove named elements from gtable
save_plot

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

Draw text.
draw_plot_label

Add a label to a plot
gtable_squash_rows

Set the height of given rows to 0.
draw_figure_label

Add a label to a figure
plot_theme

Get theme of a ggplot2 plot