Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.