Skip to content

Instantly share code, notes, and snippets.

@dgrtwo
Created February 5, 2016 06:10
Show Gist options
  • Save dgrtwo/38e70de658b48e166f90 to your computer and use it in GitHub Desktop.
Save dgrtwo/38e70de658b48e166f90 to your computer and use it in GitHub Desktop.
theme_blank() for ggplot2
theme_blank <- function(...) {
ret <- theme_bw(...)
ret$line <- element_blank()
ret$rect <- element_blank()
ret$strip.text <- element_blank()
ret$axis.text <- element_blank()
ret$plot.title <- element_blank()
ret$axis.title <- element_blank()
ret$plot.margin <- structure(c(0, 0, -1, -1), unit = "lines", valid.unit = 3L, class = "unit")
ret
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment