Learn R Programming

trip (version 1.10.0)

oc.theme: SeaWiFS ocean colour colours

Description

Generate ocean colour colours, using the SeaWiFS scheme

Usage

oc.theme(x = 50)

oc.colors(n)

Value

A set of colours or a theme object.

Arguments

x

Number of colours to generate as part of a theme

n

Number of colours to generate

Details

This is a high-contrast palette, log-scaled originally for ocean chlorophyll.

See Also

Similar functions in sp spplot, bpy.colors

Examples

Run this code
 oc.colors(10)
 library(lattice)
 trellis.par.set(oc.theme())
 d <- data.frame(x=1:10, y=rnorm(10), tms=Sys.time() + 1:10, id=gl(2, 5))
tr <- trip(d)

 tg <- tripGrid(tr)
 plot(tg)

Run the code above in your browser using DataLab