Description Usage Arguments Examples
scale_color_retinal
retinal color scale for ggplot2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | scale_color_retinal(
palette = "aurora",
discrete = TRUE,
alpha = 1,
reverse = FALSE,
...
)
scale_colour_retinal(
palette = "aurora",
discrete = TRUE,
alpha = 1,
reverse = FALSE,
...
)
|
palette |
Choose from 'retinal_palettes' list |
discrete |
whether to use a discrete colour palette |
alpha |
transparency |
reverse |
logical, Reverse the order of the colours? |
... |
additional arguments to pass to scale_color_gradientn |
1 2 3 4 5 6 | library(ggplot2)
library(retinal)
ggplot(diamonds) +
geom_point(aes(x = carat, y = price, color = cut)) +
scale_color_retinal("lumina")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.