Learn R Programming

tidyplots (version 0.2.2)

new_color_scheme: New color scheme

Description

For more information about the use of color schemes in tidyplots, check out this article: Color schemes

Usage

new_color_scheme(x, name = "Untitled color scheme", reverse = FALSE)

Value

A tidyplot object.

Arguments

x

Character vector of hex colors. For example x = c("#FF00FF", "#00FFFF").

name

Name of the custom color scheme.

reverse

Whether the order should be reversed or not. Defaults to FALSE, meaning not reversed.

Examples

Run this code
new_color_scheme(c("#ECA669","#E06681","#8087E2","#E2D269"))

new_color_scheme(c("#ECA669","#E06681","#8087E2","#E2D269"),
  name = "my_custom_color_scheme")

Run the code above in your browser using DataLab