Lifecycle: Experimental.
Color and fill single-color scales for discrete and continuous values, created using the primary accent color of the xaringanthemer styles.
scale_xaringan_discrete( aes_type = c("color", "colour", "fill"), ..., color = NULL, direction = 1, inverse = FALSE ) scale_xaringan_fill_discrete(..., color = NULL, direction = 1, inverse = FALSE) scale_xaringan_color_discrete( ..., color = NULL, direction = 1, inverse = FALSE ) scale_xaringan_colour_discrete( ..., color = NULL, direction = 1, inverse = FALSE ) scale_xaringan_continuous( aes_type = c("color", "colour", "fill"), ..., color = NULL, begin = 0, end = 1, inverse = FALSE ) scale_xaringan_fill_continuous( ..., color = NULL, begin = 0, end = 1, inverse = FALSE ) scale_xaringan_color_continuous( ..., color = NULL, begin = 0, end = 1, inverse = FALSE ) scale_xaringan_colour_continuous( ..., color = NULL, begin = 0, end = 1, inverse = FALSE )
| aes_type | The type of aesthetic to which the scale is being applied. One of "color", "colour", or "fill". |
|---|---|
| ... | Arguments passed on to either the colorspace scale functions — one of colorspace::scale_color_discrete_sequential, colorspace::scale_color_continuous_sequential, colorspace::scale_fill_discrete_sequential, or colorspace::scale_fill_continuous_sequential — or to ggplot2::continuous_scale or ggplot2::discrete_scale. |
| color | A color value, in hex, to override the default color. Otherwise, the primary color of the resulting scale is chosen from the xaringanthemer slide styles. |
| direction | Direction of the discrete scale. Use values less than 0 to
reverse the direction, e.g. |
| inverse | If |
| begin | Number in the range of |
| end | Number in the range of |