PlotColors: Vectors of colors for my plots

View source: R/PlotColors.R

PlotColorsR Documentation

Vectors of colors for my plots

Description

Copyright (C) 2018 Karl Broman GNU General Public License, version 3, available at https://www.r-project.org/Licenses/GPL-3

Usage

PlotColors(
  set = c("main", "lines", "cbPalette", "hivcascade4", "hivcascade5", "crayons",
    "dracula")
)

Arguments

set

Character string indicating a set of colors.

Details

This function Creates different vectors of colors that I use for plots. It was inspired by Karl Broman's brocolors.R function: https://github.com/kbroman/pkg_primer/blob/gh-pages/example/stage5/R/brocolors.R which he uses in his minimal R package example. I have copied a number of pieces of that, particularly the crayon colors specifications.

Value

Vector of character strings representing the chosen set of colors, in RGB.

Author(s)

Richard T Gray, Rgray@kirby.unsw.edu.au

References

https://github.com/kbroman/pkg_primer/blob/gh-pages/example/stage5/R/brocolors.R

http://en.wikipedia.org/wiki/List_of_Crayola_crayon_colors

See Also

PlotCrayons

Examples

PlotColors()


leftygray/LeftysRpkg documentation built on Feb. 11, 2024, 5:13 p.m.