morandi: Morandi Color Palette for R Plot Morandi colors refer to a...

Description Usage Arguments Value Examples

View source: R/morandi_palette.R

Description

Morandi Color Palette for R Plot Morandi colors refer to a muted and pale color palette, which is not bright as if covered with a layer of gray tone. Morandi colors has rich connotation without a tendency to show off, releasing the soothing elegance.

Usage

1
morandi(name, n, type = c("discrete", "continuous"))

Arguments

name

Palette name for plotting two variables: Two_Variables1, Two_Variables2, three variables: Three_Variables1, Three_Variables2 multivariables: WildDream, SweetDream, MistyForest, Melancholy, Aurora, Cava.

n

number of colors.

type

"Continuous" or "discrete".

Value

A vector of colors

Examples

1
2
3
4
5
6
7
8
9
morandi("Two_Variables2")
morandi("Three_Variables2")
morandi("Cava")
morandi("Unicorn")
# If you need more colours than normally found in a palette, you
# can use a continuous palette to interpolate between existing
# colours
palette <- morandi(100, name = "Melancholy", type = "continuous")
image(volcano, col = palette)

narcisoyu/moRandi documentation built on Jan. 1, 2021, 11:32 a.m.