scale_color_marjan: Marjan color scale for color aesthetic

View source: R/scale_color_marjan.R

scale_color_marjanR Documentation

Marjan color scale for color aesthetic

Description

This function provides a color scale for the color 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_color_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_color_gradientn').

Value

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

See Also

scale_color_discrete, scale_color_gradientn

Examples

## Not run: 
library(ggplot2)
ggplot(mtcars, aes(x = mpg, y = disp, size = hp, color = carb)) +
geom_point() +
scale_color_marjan(palette = "divergentPolar", discrete = FALSE)

## End(Not run)


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