Created
February 5, 2016 06:10
-
-
Save dgrtwo/38e70de658b48e166f90 to your computer and use it in GitHub Desktop.
theme_blank() for ggplot2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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