sort_colors: A Color Sorting Function

Description Usage Arguments Value References Examples

View source: R/sort_colors.R

Description

A Color Sorting Function

Usage

1

Arguments

col

vector of any of the three kinds of R color specifications, i.e., either a color name (as listed by colors()), a hexadecimal string of the form "#rrggbb" or "#rrggbbaa" (see rgb), or a positive integer i meaning palette()[i].

Value

A vector of colors.

References

https://learnr.wordpress.com/2010/01/21/ggplot2-crayola-crayon-colours/

Examples

1
2
3
colors <- c("#060306", "#290705", "#131325")
sorted_colors <- sort_colors(colors)
sorted_colors

Nowosad/filmcolors documentation built on May 7, 2019, 6:19 p.m.