Learn R Programming

geo (version 1.4-3)

Rlitir: Display colors.

Description

A grid of colors is plotted.

Usage

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

Run this code
# 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))

Run the code above in your browser using DataLab