marjan_pal: Marjan Color Palette

View source: R/marjan_pal.R

marjan_palR Documentation

Marjan Color Palette

Description

This function returns a color palette from the Marjan color schemes. The Marjan color schemes are a set of predefined color palettes.

Usage

marjan_pal(palette = "main", reverse = FALSE, ...)

Arguments

palette

A string representing the color palette to use. Available palettes are "main", "myBlue", "myRed", "myOrange", "myGreen", "myJungle", "divergentPolar", "divergentNeutral", "divergentNeutral2". Default is "main".

reverse

Logical. If TRUE, the order of the colors in the palette is reversed. Default is FALSE.

...

Additional arguments passed to the colorRampPalette function.

Value

A colorRampPalette function representing the chosen Marjan color palette.

See Also

colorRampPalette

Examples

## 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)


handyReport documentation built on Oct. 8, 2024, 3 p.m.