Skip to content

Commit d190adf

Browse files
committed
Document palette.* in theme
1 parent d20c7e9 commit d190adf

2 files changed

Lines changed: 56 additions & 0 deletions

File tree

R/theme.R

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,21 @@
132132
#' @param legend.box.spacing The spacing between the plotting area and the
133133
#' legend box (`unit`); inherits from `spacing`.
134134
#'
135+
#' @param palette.colour.discrete,palette.colour.continuous,palette.fill.discrete,palette.fill.continuous
136+
#' default palettes for the colour and fill aesthetics to use for discrete or
137+
#' continuous data. Can be a character vector of colours or a palette function
138+
#' such as [scales::pal_hue()]. `palette.fill.discrete` inherits from
139+
#' palette.colour.discrete` and `palette.fill.continuous` inherits from
140+
#' `palette.colour.continuous`.
141+
#' @param palette.alpha.discrete,palette.linewidth.discrete,palette.size.discrete,palette.shape.discrete,palette.linetype.discrete
142+
#' default palette to use for discrete scales for the corresponding aesthetic.
143+
#' See the `palette` parameter of [discrete_scale()] and
144+
#' `vignette("ggplot2-specs")` for allowed values.
145+
#' @param palette.alpha.continuous,palette.linewidth.continuous,palette.size.continuous,palette.shape.continuous,palette.linetype.continuous
146+
#' default palette to use for continuous scales for the corresponding aesthetic.
147+
#' See the `palette` parameter of [continuous_scale()] and
148+
#' `vignette("ggplot2-specs")` for allowed values.
149+
#'
135150
#' @param panel.background background of plotting area, drawn underneath plot
136151
#' ([element_rect()]; inherits from `rect`)
137152
#' @param panel.border border around plotting area, drawn on top of plot so that
@@ -446,6 +461,20 @@ theme <- function(...,
446461
legend.box.margin,
447462
legend.box.background,
448463
legend.box.spacing,
464+
palette.colour.discrete,
465+
palette.colour.continuous,
466+
palette.fill.discrete,
467+
palette.fill.continuous,
468+
palette.alpha.discrete,
469+
palette.alpha.continuous,
470+
palette.linewidth.discrete,
471+
palette.linewidth.continuous,
472+
palette.size.discrete,
473+
palette.size.continuous,
474+
palette.shape.discrete,
475+
palette.shape.continuous,
476+
palette.linetype.discrete,
477+
palette.linetype.continuous,
449478
panel.background,
450479
panel.border,
451480
panel.spacing,

man/theme.Rd

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)