R/theme-gridsontop.R

Defines functions theme_gridsonbottom theme_gridsontop

Documented in theme_gridsonbottom theme_gridsontop

#' Render Grids on Top
#' 
#' Convenience function to render the major and minor grids on top (or bottom) of the other layers.
#' By default the grids are rendered in the background (bottom)
#' @author Nicholas Hamilton
#' @rdname theme_gridsontop
#' @export
theme_gridsontop = function(){
  theme(tern.panel.grid.ontop=TRUE)
}

#' @rdname theme_gridsontop
#' @export
theme_gridsonbottom = function(){
  theme(tern.panel.grid.ontop=FALSE)
}

Try the ggtern package in your browser

Any scripts or data that you put into this service are public.

ggtern documentation built on June 7, 2023, 6:33 p.m.