Description Usage Arguments Value Examples
These functions use the colors in palette_malco()
to work easily with
ggplot2 and ggraph.
1 2 3 4 5 6 7 8 9 10 11 12 13 | scale_malco(aesthetics, order = 1:7, alpha = NULL, ...)
scale_colour_malco(order = 1:7, alpha = NULL, ...)
scale_color_malco(order = 1:7, alpha = NULL, ...)
scale_fill_malco(order = 1:7, alpha = NULL, ...)
scale_edge_colour_malco(order = 1:7, alpha = NULL, ...)
scale_edge_color_malco(order = 1:7, alpha = NULL, ...)
scale_edge_fill_malco(order = 1:7, alpha = NULL, ...)
|
aesthetics |
What type of aesthetic? |
order |
What's the order of the palette? |
alpha |
A numeric vector |
... |
Passed to ggplot2::discrete_scale |
a ggplot scale
1 2 3 4 5 | library(ggplot2)
ggplot(mtcars, aes(mpg, hp, col = factor(am))) +
geom_point() +
scale_color_malco()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.