The RSkittleBrewer package contains three functions: RSkittleBrewer, plotSkittles, and plotSmarties.

The RSkittleBrewer function returns a vector of character strings corresponding to the colors for a given candy-related color palette.

library(RSkittleBrewer)
RSkittleBrewer("wildberry")

The plotSkittles function makes a plot to illustrate four of the five available palettes.

plotSkittles()

The plotSmarties function makes a plot to illustrate the "smarties" palette.

plotSmarties()

See the related blog post for further information about the package. The source is on GitHub.



alyssafrazee/RSkittleBrewer documentation built on April 1, 2020, 1:38 p.m.