Learn R Programming

ggmap (version 1.2)

theme_nothing: Make a blank ggplot2 theme.

Description

theme_nothing simply strips all thematic element in ggplot2 for map plotting.

Usage

theme_nothing(base_size = 12)

Arguments

base_size
base size, not used.

Value

  • a ggplot2 theme (i.e., a list of class options).

Examples

Run this code
library(ggplot2)
n <- 50
df <- expand.grid(x = 1:n,y = 1:n)[sample(n^2,.5*n^2),]
qplot(x, y, data = df, geom = 'tile')
qplot(x, y, data = df, geom = 'tile') + theme_nothing()

Run the code above in your browser using DataLab