View source: R/prepare_scales.R
get_colour_scale | R Documentation |
Get a Brewer or Viridis colour scale.
get_colour_scale(
name,
val_type,
aes_type,
limits = NULL,
bins = NULL,
leg_order = 1,
title = ggplot2::waiver(),
na_col = "grey50"
)
name |
Scale palette/option name. |
val_type |
Value type ('continuous' or 'discrete'). |
aes_type |
Aesthetic type ('fill' or 'col'). |
limits |
Limits for scale. |
bins |
Number of bins if binned scale. |
leg_order |
Order of legend. |
title |
Legend title. |
na_col |
Colour of NA cells. |
ggplot2 scale using Brewer or Viridis.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.