I like the classic look theme in ggplot2:
library(ggplot2)
thm <- theme_classic()
theme_set(thm)
set.seed(123)
a <- data.frame(var=rnorm(2000))
ggplot(a,aes(var)) + geom_histogram()
As per this question, I can remove the space between the data and the axes using expand=c(0,0)
in the scale_x_continuous
and scale_y_continuous
options.
But is there a way I can set this as the default in thm
?