View source: R/scale_fill_marjan.R
scale_fill_marjan | R Documentation |
This function provides a color scale for the fill aesthetic using the Marjan color palette. The Marjan palette is a customized color palette that provides a range of distinct and attractive colors.
scale_fill_marjan(palette = "main", discrete = TRUE, reverse = FALSE, ...)
palette |
A string representing the color palette to use. Available palettes are |
discrete |
Logical. If |
reverse |
Logical. If |
... |
Additional arguments passed on to the underlying scale function ('discrete_scale' or 'scale_fill_gradientn'). |
A ggplot2 scale that can be added to a ggplot object.
scale_fill_discrete
, scale_fill_gradientn
## Not run:
library(ggplot2)
ggplot(mtcars, aes(x = gear, fill = as.factor(gear))) +
geom_bar(position = "dodge") +
scale_fill_marjan("main")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.