scale_fill_marjan: Marjan color scale for fill aesthetic

View source: R/scale_fill_marjan.R

scale_fill_marjanR Documentation

Marjan color scale for fill aesthetic

Description

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.

Usage

scale_fill_marjan(palette = "main", discrete = TRUE, 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".

discrete

Logical. If TRUE (default), a discrete color scale is used. If FALSE, a continuous color gradient is used.

reverse

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

...

Additional arguments passed on to the underlying scale function ('discrete_scale' or 'scale_fill_gradientn').

Value

A ggplot2 scale that can be added to a ggplot object.

See Also

scale_fill_discrete, scale_fill_gradientn

Examples

## Not run: 
library(ggplot2)
ggplot(mtcars, aes(x = gear, fill = as.factor(gear))) +
 geom_bar(position = "dodge") +
 scale_fill_marjan("main")

## End(Not run)


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