Learn R Programming

SciencesPo (version 1.4.1)

theme_blank: Create a Completely Empty Theme

Description

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

Usage

theme_blank(base_size = 12, base_family = "serif", legend = "none")

Arguments

base_size
overall font size. Default is 12.
base_family
a name for default font family.
legend
the legend position.

Value

The theme.

Examples

Run this code
# plot with small amount of remaining padding
qplot(1:10, (1:10)^2) + theme_blank()

# remaining padding removed
qplot(1:10, (1:10)^2) + theme_blank() + labs(x = NULL, y = NULL)

# Check that it is a complete theme
attr(theme_blank(), "complete")

Run the code above in your browser using DataLab