palette.picker: Choose a palette interactively from a grid

Description Usage Arguments Details Author(s) Examples

Description

palette.picker

Usage

1
palette.picker(n = 6, detail = 100)

Arguments

n

an integer specifying how many colors to make a pallete from.

detail

an integer specifying the smoothness of color chart. In essence it gives the NxN dimensions of the displayed color grid, which in turn dictates how many colors are displayed. Large values may slow down the process. Defaults to 100 (10 000 colors).

Details

palette.picker aids in the selection of colors from a grid and builds a palette with colorRampPalette for usage in R graphics. See the example below for usage details.

Author(s)

Marco D. Visser

Examples

1
2
3
4
5
6
load volcano data
data(volcano)
#Select 5 colors to make a palette
Mypalette<-palette.picker(n=5)
create an image with the new palette
image(volcano,col=MyPallete(1000))

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