marjan_pal | R Documentation |
This function returns a color palette from the Marjan color schemes. The Marjan color schemes are a set of predefined color palettes.
marjan_pal(palette = "main", reverse = FALSE, ...)
palette |
A string representing the color palette to use. Available palettes are |
reverse |
Logical. If TRUE, the order of the colors in the palette is reversed. Default is FALSE. |
... |
Additional arguments passed to the colorRampPalette function. |
A colorRampPalette function representing the chosen Marjan color palette.
colorRampPalette
## Not run:
pal <- marjan_pal("myBlue")
colors <- pal(10) # Generate 10 colors from the "myBlue" Marjan color palette
library(ggplot)
ggplot(mtcars, aes(x = gear)) +
geom_bar(fill = marjan_color("myBlue"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.