README.md

"colortools"

colortools is an R package designed to help users generate color schemes and color palettes. It provides some handy functions that will allow you to select and play with colors in an HSV color representation.

Donation

As a Data Science and Statistics educator, I love to share the work I do. Each month I spend dozens of hours curating learning materials and computational tools like this R package. If you find any value and usefulness in colortools, please consider making a one-time donation---via paypal---in any amount (e.g. the amount you would spend inviting me a coffee or any other drink). Your support really matters.

Installation

Stable version on CRAN

# stable version
install.packages("colortools")

Development version on github

# development version
library(devtools)
install_github('colortools',  username='gastonstat')

Some Examples

# load package
library(colortools)

# define some colors
some_colors = setColors("#3D6DCC", 15)

# pizza plot
pizza(some_colors)

# analagous scheme for color "#3D6DCC"
analogous("#3D6DCC")

# complementary scheme for color "#3D6DCC"
complementary("#3D6DCC")

# split complementary scheme for color "#3D6DCC"
splitComp("#3D6DCC")

# triadic scheme for color "#3D6DCC"
triadic("#3D6DCC")

# tetradic scheme for color "#3D6DCC"
tetradic("#3D6DCC")

# square scheme for color "#3D6DCC"
square("#3D6DCC")

# sequential colors for "#3D6DCC"
sequential("#3D6DCC")

Author

www.gastonsanchez.com

Gaston Sanchez (gaston.stat at gmail.com)



gastonstat/colortools documentation built on April 8, 2022, 5:59 a.m.