% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colors.R
\name{bayesqm-colors}
\alias{bayesqm-colors}
\alias{bayesqm_colors}
\alias{bayesqm_set_colors}
\title{Get or set the bayesqm colour scheme}
\usage{
bayesqm_colors()

bayesqm_set_colors(scheme)
}
\arguments{
\item{scheme}{Character name of a built-in scheme, or a named list
of colours with the slot names listed in the description.}
}
\value{
\code{bayesqm_colors()} returns the active palette as a named
list. \code{bayesqm_set_colors()} returns the previous scheme name,
invisibly.
}
\description{
Every plot in the package reads its palette through
\code{bayesqm_colors()}. Call \code{bayesqm_set_colors()} to switch the active
scheme for every subsequent plot. The available built-in schemes are
\code{"sorts"} (default, the \code{\link[=plot_sorts]{plot_sorts()}} colour family), \code{"blue"},
\code{"teal"}, \code{"red"}, \code{"purple"}, and \code{"grey"}.
For full control, pass a named list with slots \code{dark}, \code{accent},
\code{grey}, \code{gridgrey}, and \code{fill}.
}
\examples{
bayesqm_colors()
old <- bayesqm_set_colors("teal")
bayesqm_colors()[["fill"]]
bayesqm_set_colors(old)

}
