Skip to content

Commit 1f19263

Browse files
committed
document news
1 parent 00dbf30 commit 1f19263

14 files changed

+25
-9
lines changed

R/scale-.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@
9292
#' to generate the values for the `expand` argument. The defaults are to
9393
#' expand the scale by 5% on each side for continuous variables, and by
9494
#' 0.6 units on each side for discrete variables.
95+
#' @param fallback.palette Function to use when `palette = NULL` and the
96+
#' palette is not represented in the theme.
9597
#' @param position For position scales, The position of the axis.
9698
#' `left` or `right` for y axes, `top` or `bottom` for x axes.
9799
#' @param call The `call` used to construct the scale for reporting messages.

R/scale-discrete-.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#' level, and increasing by one for each level (i.e. the labels are placed
1111
#' at integer positions). This is what allows jittering to work.
1212
#'
13-
#' @inheritDotParams discrete_scale -scale_name
13+
#' @inheritDotParams discrete_scale -scale_name -fallback.palette
1414
#' @inheritParams discrete_scale
1515
#' @param palette A palette function that when called with a single integer
1616
#' argument (the number of levels in the scale) returns the numerical values

R/scale-gradient.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#' @param low,high Colours for low and high ends of the gradient.
1717
#' @param guide Type of legend. Use `"colourbar"` for continuous
1818
#' colour bar, or `"legend"` for discrete colour legend.
19-
#' @inheritDotParams continuous_scale -na.value -guide -aesthetics -expand -position -palette
19+
#' @inheritDotParams continuous_scale -na.value -guide -aesthetics -expand -position -palette -fallback.palette
2020
#' @seealso [scales::pal_seq_gradient()] for details on underlying
2121
#' palette, [scale_colour_steps()] for binned variants of these scales.
2222
#'

R/scale-grey.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#'
66
#' @inheritParams scales::pal_grey
77
#' @inheritParams scale_colour_hue
8-
#' @inheritDotParams discrete_scale -expand -position -scale_name -palette
8+
#' @inheritDotParams discrete_scale -expand -position -scale_name -palette -fallback.palette
99
#' @family colour scales
1010
#' @seealso
1111
#' The documentation on [colour aesthetics][aes_colour_fill_alpha].

R/scale-hue.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#' It does not generate colour-blind safe palettes.
55
#'
66
#' @param na.value Colour to use for missing values
7-
#' @inheritDotParams discrete_scale -aesthetics -expand -position -scale_name -palette
7+
#' @inheritDotParams discrete_scale -aesthetics -expand -position -scale_name -palette -fallback.palette
88
#' @param aesthetics Character string or vector of character strings listing the
99
#' name(s) of the aesthetic(s) that this scale works with. This can be useful, for
1010
#' example, to apply colour settings to the `colour` and `fill` aesthetics at the

R/scale-linetype.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#' no inherent order, this use is not advised.
77
#'
88
#' @inheritParams discrete_scale
9-
#' @inheritDotParams discrete_scale -expand -position -na.value -scale_name -palette
9+
#' @inheritDotParams discrete_scale -expand -position -na.value -scale_name -palette -fallback.palette
1010
#' @rdname scale_linetype
1111
#' @details
1212
#' Lines can be referred to by number, name or hex code. Contrary to base R

R/scale-manual.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#' of aesthetics provided via the `aesthetics` argument.
1313
#'
1414
#' @inheritParams discrete_scale
15-
#' @inheritDotParams discrete_scale -expand -position -aesthetics -palette -scale_name
15+
#' @inheritDotParams discrete_scale -expand -position -aesthetics -palette -scale_name -fallback.palette
1616
#' @param aesthetics Character string or vector of character strings listing the
1717
#' name(s) of the aesthetic(s) that this scale works with. This can be useful, for
1818
#' example, to apply colour settings to the `colour` and `fill` aesthetics at the

R/scale-shape.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#' @param solid Should the shapes be solid, `TRUE`, or hollow,
1111
#' `FALSE`?
1212
#' @inheritParams discrete_scale
13-
#' @inheritDotParams discrete_scale -expand -position -scale_name -palette
13+
#' @inheritDotParams discrete_scale -expand -position -scale_name -palette -fallback.palette
1414
#' @rdname scale_shape
1515
#' @details
1616
#' Shapes can be referred to by number or name. Shapes in \[0, 20\] do not

R/scale-size.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ scale_size_ordinal <- function(name = waiver(), ..., range = NULL, aesthetics =
124124
)
125125
}
126126

127-
#' @inheritDotParams continuous_scale -aesthetics -scale_name -palette -rescaler -expand -position
127+
#' @inheritDotParams continuous_scale -aesthetics -scale_name -palette -rescaler -expand -position -fallback.palette
128128
#' @param max_size Size of largest points.
129129
#' @export
130130
#' @rdname scale_size

R/scale-steps.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#' Munsell colour system.
1414
#'
1515
#' @inheritParams scale_colour_gradient
16-
#' @inheritDotParams binned_scale -aesthetics -scale_name -palette -na.value -guide -rescaler -expand -position
16+
#' @inheritDotParams binned_scale -aesthetics -scale_name -palette -na.value -guide -rescaler -expand -position -fallback.palette
1717
#'
1818
#' @seealso
1919
#' [scales::pal_seq_gradient()] for details on underlying palette,

0 commit comments

Comments
 (0)