\name{showPalettes}
\alias{showPalettes}

\title{Display Color Palettes}

\description{
For each specified palette class, display each palette in the class as a strip of colors in a single multi-panel PDF file.
}

\usage{
showPalettes(palette=c("sequential", "hues", "viridis", "wesanderson"),
             n=12, border="transparent", file=NULL)
}


\arguments{
  \item{palette}{Name of the palette class to display, one of \code{"sequential"}, \code{"hues"}, \code{"viridis"}, or \code{"wesanderson"}. Default is \code{"sequential"}.}
  \item{n}{Number of colors per palette. Default is 12 colors.}
  \item{border}{Color of the border between color strips, or \code{"off"} for no border. Default is \code{"transparent"}.}
  \item{file}{Name of the PDF file to write. Default is the palette class name with a \code{.pdf} extension.}
}


\details{
Four palette classes are available:
\itemize{
  \item \code{"sequential"}: HCL sequential palettes for each of 12 hues across the HCL color wheel in 30-degree intervals, plus grayscale.
  \item \code{"hues"}: 16 qualitative palettes based on the HCL hue wheel, shown for all combinations of chroma and luminance from \code{c} \eqn{\in \{20, 40, 60, 80\}} and \code{l} \eqn{\in \{20, 40, 60, 80\}}, each labeled with its \code{c} and \code{l} values.
  \item \code{"viridis"}: The viridis, cividis, plasma, and spectral palettes.
  \item \code{"wesanderson"}: Palettes from the \pkg{wesanderson} package (which must be installed separately).
}
}


\author{David W. Gerbing (Portland State University; \email{gerbing@pdx.edu})}


\examples{
# default: sequential HCL palettes
#showPalettes()

# hues palettes across c x l grid
#showPalettes("hues")

# viridis palettes, simulate continuity with many small color blocks
#showPalettes("viridis", n=500, border="off")
}

% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{ color }
