pal_differently | R Documentation |
Construct Security Differently branded color palettes.
pal_differently(palette = "plot", direction = 1)
differently_pal(palette = "plot", direction = 1)
palette |
Palette to use, one of: |
direction |
Sets the order of colors in the scale. If 1, (the default) colors are as output by differently_palettes. If -1, the order of colors is reversed. |
A vector of hex code colors.
library(scales)
show_col(pal_differently()(6))
show_col(pal_differently("primary")(6))
show_col(pal_differently("primary", direction = -1)(6))
show_col(pal_differently("status")(3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.