scale_color_si | R Documentation |
SIEI colors available through scale_color_si
scale_color_si(
palette = "hunter_c",
alpha = 1,
discrete = FALSE,
reverse = FALSE,
na.value = slate,
...
)
palette |
Choose from 'si_palettes' list |
alpha |
sets transparency of each color |
discrete |
whether to use a discrete color palette |
reverse |
if true, reverses the order of palette |
na.value |
color for NA values, default = slate |
... |
additional arguments to pass to scale_color_gradientn |
siei color scales for ggplot2
## Not run:
library(ggplot2)
library(glitr)
# Apply palettes to discrete or continuous colors
ggplot(diamonds) +
geom_point(aes(x = carat, y = price, color = cut)) +
scale_color_si("hunter_c", discrete = T)
ggplot(diamonds) +
geom_point(aes(x = carat, y = price, color = price)) +
scale_color_si("hunter_c")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.