R/theme_density.R

Defines functions theme_density

Documented in theme_density

#' Density plotting theme
#' 
#' Adding this function to a ggplot changes the theme
#' @export



theme_density <- function(...) {
    list(scale_y_continuous(expand=c(0.01,0.01)),
         theme(panel.border=element_blank(),
               panel.background=element_blank(),
               axis.text.y=element_blank(),
               axis.title.y=element_blank(),
               axis.ticks.y=element_blank()),...)
}
ctriandafillou/cat.extras documentation built on Aug. 27, 2020, 11:04 p.m.