Description Usage Arguments Examples
These create discrete color scales using the hues in the Sage branded colors list.
1 2 3 | scale_colour_sage_d(..., level = "500", direction = 1, aesthetics = "colour")
scale_fill_sage_d(..., level = "500", direction = 1, aesthetics = "fill")
|
... |
Options passed to |
level |
Color intensity. One of "200", "300", "400", "500", "600", "700", "800". |
direction |
Sets the order of colors in the scale |
aesthetics |
Character string or vector of character strings listing the
name(s) of the aesthetic(s) that this scale works with. This can be useful, for
example, to apply colour settings to the |
1 2 3 4 5 6 7 8 9 10 11 12 13 | library("ggplot2")
ggplot(mpg, aes(displ, hwy, colour = class)) +
geom_point() +
scale_color_sage_d()
ggplot(mpg, aes(displ, hwy, colour = class)) +
geom_point() +
scale_color_sage_d(level = "800")
ggplot(mtcars, aes(factor(vs), fill = factor(cyl))) +
geom_bar() +
scale_fill_sage_d()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.