Rlitir: Display colors.

Description Usage Arguments Value See Also Examples

View source: R/Rlitir.R

Description

A grid of colors is plotted.

Usage

1
Rlitir(n, col)

Arguments

n

Number of columns and rows of colors to display

col

A vector of colors

Value

No value returned, plots an n by n grid of colors.

See Also

colorRampPalette

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# simple, perhaps not so useful application with default palette:

Rlitir(12, 1:144)

# Define a palette with some colors:

ramp <- colorRampPalette(c("khaki1", "gold", "orange",
  "darkorange2", "red", "darkred", "black"))

# number of columns and rows to display

n <- 10

Rlitir(n, ramp(n^2))

geo documentation built on May 29, 2017, 5:36 p.m.