44 lines
990 B
R
44 lines
990 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/scale.R
|
|
\name{scale_color}
|
|
\alias{scale_color}
|
|
\title{Color scale constructor for REACH or AGORA colors}
|
|
\usage{
|
|
scale_color(
|
|
initiative = "reach",
|
|
palette = "main",
|
|
discrete = TRUE,
|
|
reverse = FALSE,
|
|
...
|
|
)
|
|
|
|
scale_color(
|
|
initiative = "reach",
|
|
palette = "main",
|
|
discrete = TRUE,
|
|
reverse = FALSE,
|
|
...
|
|
)
|
|
}
|
|
\arguments{
|
|
\item{initiative}{Either "reach" or "agora}
|
|
|
|
\item{palette}{Character name of palette in drsimonj_palettes}
|
|
|
|
\item{discrete}{Boolean indicating whether color aesthetic is discrete or not}
|
|
|
|
\item{reverse}{Boolean indicating whether the palette should be reversed}
|
|
|
|
\item{...}{Additional arguments passed to discrete_scale() or
|
|
scale_fill_gradientn(), used respectively when discrete is TRUE or FALSE}
|
|
}
|
|
\value{
|
|
A color scale for ggplot
|
|
|
|
A fill scale for ggplot
|
|
}
|
|
\description{
|
|
Color scale constructor for REACH or AGORA colors
|
|
|
|
Fill scale constructor for REACH or AGORA colors
|
|
}
|