README.md

choosecolor

Quickly choosing colors and making palettes in R can be a chore. The functions in choosecolor are a simple set of functions which can help to rapidly select colors in R. Using the "locator" functionality in R, it enables an interactive way of selecting colors visually for use in R graphics. It is built to be lightweight and depends on nothing but the base R installation.

It's nothing fancy, just functional.

Installation

Currently there isn't a release on CRAN, though there may one day be one. You can still download the zip or tar ball. Then decompress and run R CMD INSTALL on it, or use the devtools package to install the development version (following code courtesy of dasonk ).

## Make sure your current packages are up to date
update.packages()
## devtools is required
library(devtools)
install_github("choosecolor", "MarcoDVisser")

Usage Examples

# pick a color
mycol<-color.choose()

#make a pallete 
Mypalette<-palette.picker(n=5) 

# use your palette e.g.
Mypalette(10)

# Get more detail in choice with the color wheel
color.wheel()

Screenshot

Credits:

The inspiration for this comes from dsparks, menugget and aviadklein. However I wanted to have similar functionality as the color_picker.R version from dsparks (or the other two) but without the heavy overhead (e.g. packages), with more colors, and a simpler plot to pick from.



MarcoDVisser/choosecolor documentation built on May 7, 2019, 2:49 p.m.