scale_fill_met_d | R Documentation |
Function for using MetBrewer
colors schemes in ggplot2
. Use scale_color_met_d
and scale_fill_met_d
for discrete scales and scale_color_met_c
and scale_fill_met_c
for continuous scales.
scale_fill_met_d(palette_name, direction = 1, override_order = FALSE, ...)
palette_name |
Name of Palette. Choices are:
|
direction |
Sets order of colors. Default palette is 1. If direction is -1, palette color order is reversed |
override_order |
Colors are picked from palette to maximize readability and aesthetics. This means that colors are not always selected in sequential order from the full palette. If override_order is set to TRUE, colors are selected in sequential order from the full palette instead. Default is FALSE. |
... |
Other arguments passed on to |
library(ggplot2)
ggplot(data=iris, aes(x=Species, y=Sepal.Length, fill=Species)) +
geom_violin() +
scale_fill_met_d("Lakota")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.