#| label: ggplot-theme
#| include: false
library(ggplot2)
lightgray = "#bbbbbb"
gridcolor = rgb(0,0,0,.1, maxColorValue=1)
lab.theme = theme(
plot.background = element_rect(fill = "transparent", colour = NA),
panel.background = element_rect(fill = "transparent", colour = NA),
legend.background = element_rect(fill="transparent", colour = NA),
legend.box.background = element_rect(fill="transparent", colour = NA),
legend.key = element_rect(fill="transparent", colour = NA),
axis.ticks.x = element_blank(),
axis.ticks.y = element_blank(),
axis.text.x = element_text(colour = lightgray),
axis.text.y = element_text(colour = lightgray),
axis.title.x = element_blank(),
axis.title.y = element_blank(),
panel.grid.major=element_line(colour=gridcolor),
panel.grid.minor=element_line(colour=gridcolor, linewidth=0.25))
theme_set(lab.theme)