Skip to content

Commit fad474a

Browse files
committed
Document palette.* in theme
1 parent fbc6a25 commit fad474a

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
@@ -126,6 +126,21 @@
126126
#' @param legend.box.spacing The spacing between the plotting area and the
127127
#' legend box (`unit`); inherits from `spacing`.
128128
#'
129+
#' @param palette.colour.discrete,palette.colour.continuous,palette.fill.discrete,palette.fill.continuous
130+
#' default palettes for the colour and fill aesthetics to use for discrete or
131+
#' continuous data. Can be a character vector of colours or a palette function
132+
#' such as [scales::pal_hue()]. `palette.fill.discrete` inherits from
133+
#' palette.colour.discrete` and `palette.fill.continuous` inherits from
134+
#' `palette.colour.continuous`.
135+
#' @param palette.alpha.discrete,palette.linewidth.discrete,palette.size.discrete,palette.shape.discrete,palette.linetype.discrete
136+
#' default palette to use for discrete scales for the corresponding aesthetic.
137+
#' See the `palette` parameter of [discrete_scale()] and
138+
#' `vignette("ggplot2-specs")` for allowed values.
139+
#' @param palette.alpha.continuous,palette.linewidth.continuous,palette.size.continuous,palette.shape.continuous,palette.linetype.continuous
140+
#' default palette to use for continuous scales for the corresponding aesthetic.
141+
#' See the `palette` parameter of [continuous_scale()] and
142+
#' `vignette("ggplot2-specs")` for allowed values.
143+
#'
129144
#' @param panel.background background of plotting area, drawn underneath plot
130145
#' ([element_rect()]; inherits from `rect`)
131146
#' @param panel.border border around plotting area, drawn on top of plot so that
@@ -419,6 +434,20 @@ theme <- function(...,
419434
legend.box.margin,
420435
legend.box.background,
421436
legend.box.spacing,
437+
palette.colour.discrete,
438+
palette.colour.continuous,
439+
palette.fill.discrete,
440+
palette.fill.continuous,
441+
palette.alpha.discrete,
442+
palette.alpha.continuous,
443+
palette.linewidth.discrete,
444+
palette.linewidth.continuous,
445+
palette.size.discrete,
446+
palette.size.continuous,
447+
palette.shape.discrete,
448+
palette.shape.continuous,
449+
palette.linetype.discrete,
450+
palette.linetype.continuous,
422451
panel.background,
423452
panel.border,
424453
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)