Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

theme_nothing

Create a completely empty theme


Description

The theme created by this function shows nothing but the plot panel.

Usage

theme_nothing(font_size = 14, font_family = "", rel_small = 12/14)

Arguments

font_size

Overall font size. Default is 14.

font_family

Base font family.

rel_small

Relative size of small text

Value

The theme.

Examples

library(ggplot2)

ggplot(mtcars, aes(disp, mpg, color = cyl)) +
  geom_point() +
  theme_nothing()

cowplot

Streamlined Plot Theme and Plot Annotations for 'ggplot2'

v1.1.1
GPL-2
Authors
Claus O. Wilke [aut, cre] (<https://orcid.org/0000-0002-7470-9261>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.