These create discrete color scales using the hues in the Sage branded colors list.
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 |
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()