R/theme-ticksoutside.R

Defines functions .theme_ticksoutside theme_ticksinside theme_ticksoutside

Documented in theme_ticksinside theme_ticksoutside

#' Place Ticks Inside or Outside
#' 
#' \code{theme_ticksoutside} is a function that ensures the ticks are placed OUTSIDE of the plot area, whereas, 
#' \code{theme_ticksinside} is a function that ensures the ticks are placed INSIDE of the plot area 
#' (opposite to \code{theme_ticksoutside})
#' @author Nicholas Hamilton
#' @rdname theme_ticksoutside
#' @export
theme_ticksoutside <- function(){.theme_ticksoutside(TRUE)}

#' @rdname theme_ticksoutside
#' @export
theme_ticksinside  <- function(){.theme_ticksoutside(FALSE)}

#Internal
.theme_ticksoutside <- function(x){
  theme(tern.axis.ticks.outside=x)
}

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.