powered by
Generate ocean colour colours, using the SeaWiFS scheme
oc.theme(x = 50)oc.colors(n)
oc.colors(n)
A set of colours or a theme object.
Number of colours to generate as part of a theme
Number of colours to generate
This is a high-contrast palette, log-scaled originally for ocean chlorophyll.
Similar functions in sp spplot, bpy.colors
spplot
bpy.colors
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