R/theme-noarrows.R

Defines functions .theme_arrows theme_showarrows theme_noarrows

Documented in theme_noarrows theme_showarrows

#' Show or Hide the Ternary Arrows
#' 
#' \code{theme_noarrows} is a function that appends to the current theme a flag to switch OFF the ternary arrows
#' @author Nicholas Hamilton
#' @rdname theme_showarrows
#' @export
theme_noarrows   <- function(){.theme_arrows(FALSE)}

#' \code{theme_hidearrows} is an alias for \code{theme_noarrows}
#' @rdname theme_showarrows
#' @export
theme_hidearrows <- theme_noarrows

#' \code{theme_showarrows} is a function that appends to the current theme a flag to switch ON the ternary arrows
#' @rdname theme_showarrows
#' @export
theme_showarrows <- function(){.theme_arrows(TRUE)}

#internal function
.theme_arrows <- function(show){
  theme(tern.axis.arrow.show = show)
}

Try the ggtern package in your browser

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

ggtern documentation built on June 22, 2024, 11:01 a.m.