Add scale_fill() that was misnamed

This commit is contained in:
gnoblet 2022-05-14 10:31:40 -04:00
parent 4811f00b3f
commit a13dc5e5fe
31 changed files with 186 additions and 58 deletions

View file

@ -4,14 +4,6 @@
\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",
@ -30,15 +22,11 @@ scale_color(
\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}
scale_color_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
}

32
man/scale_fill.Rd Normal file
View file

@ -0,0 +1,32 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scale.R
\name{scale_fill}
\alias{scale_fill}
\title{Fill scale constructor for REACH or AGORA colors}
\usage{
scale_fill(
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 fill scale for ggplot
}
\description{
Fill scale constructor for REACH or AGORA colors
}