plotSatin: Easy maps from satellite data

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/plotSatin.R

Description

Visualisation of satellite data (mainly SST and chlorophyll-a concentration) from Aqua Modis and SeaWiFS products.

Usage

1
2
3
4
5
plotSatin(satin.obj, image = 1, xlim = NULL, ylim = NULL, 
          zlim = NULL, xoffs = 0, yoffs = 0, map = NULL, 
		      map.col = "grey", map.outline = "black", 
		      colimg = NULL, colbar = TRUE, colbar.pos = "r", 
		      main = NULL, main.pos = "tr", log = FALSE, ...)

Arguments

satin.obj

a satin object with satellite data as returned by read.oceancolor

image

number of image to plot

xlim

minimum and maximum longitude values for the map

ylim

minimum and maximum latitude values for the map

zlim

minimum and maximum parameter values for the map

xoffs

a value to add/substract from xlim to help centering the map and the image

yoffs

a value to add/substract from ylim to help centering the map and the image

map

a user defined map of class "sp"

map.col

color for the map

map.outline

color for the map outline

colimg

a list with a vector of color names and a vector of color breaks as returned by genColorPal

colbar

logical. If TRUE a color bar is added to the plot

colbar.pos

position of the color bar. Either top "t" or right "r" side

main

title for the plot, defaults to period in satin.obj

main.pos

position for the title: top right ("tr"), top left ("tl"), bottom right ("br") or bottom left ("bl")

log

logical. If TRUE the common (i.e., base 10) logarithm of the parameter is obtained and mapped. This may be useful for chlorophyll concentration data

...

further arguments to pass to plot

Details

The only mandatory argument for this function to produce a map is an object of class "satin" (satin.obj), which contains the longitude and latitude vectors and the corresponding parameter array (SST or chlorophyll concentration). All the other arguments are optional and are conceived to customize the map produced.

Value

a map of the corresponding parameter is produced

Author(s)

Héctor Villalobos

See Also

read.oceancolor

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# SST data (Aqua Modis)
data(dbsst)
plotSatin(dbsst)
plotSatin(dbsst, map=dmap, colbar.pos="t")

# Chl-a concentration data (Aqua Modis) in actual units and in logarithmic scale
data(dchla)
plotSatin(dchla, map=dmap, xlim=c(-130, -105), ylim=c(20, 40))
x11()
plotSatin(dchla, map=dmap, xlim=c(-130, -105), ylim=c(20, 40), log = TRUE)  

r-forge/satin documentation built on Feb. 18, 2022, 2:39 a.m.