Learn R Programming

oce (version 1.0-1)

plot,amsr-method: Plot an amsr Object

Description

Plot an amsr Object

Usage

# S4 method for amsr
plot(x, y, asp, missingColor = list(land = "papayaWhip",
  none = "lightGray", bad = "gray", rain = "plum", ice =
  "mediumVioletRed"), debug = getOption("oceDebug"), ...)

Arguments

x

An object inheriting from amsr-class.

y

String indicating the name of the band to plot; if not provided, SST is used; see amsr-class for a list of bands.

asp

Optional aspect ratio for plot.

missingColor

List of colors for problem cases. The names of the elements in this list must be as in the default, but the colors may be changed to any desired values. These default values work reasonably well for SST images, which are the default image, and which employ a blue-white-red blend of colors, no mixture of which matches the default values in missingColor.

debug

A debugging flag, integer.

...

extra arguments passed to imagep, e.g. set col to control colors.

See Also

Other functions that plot oce data: plot,adp-method, plot,adv-method, plot,argo-method, plot,bremen-method, plot,cm-method, plot,coastline-method, plot,ctd-method, plot,gps-method, plot,ladp-method, plot,landsat-method, plot,lisst-method, plot,lobo-method, plot,met-method, plot,odf-method, plot,rsk-method, plot,satellite-method, plot,sealevel-method, plot,section-method, plot,tidem-method, plot,topo-method, plot,windrose-method, plotProfile, plotScan, plotTS, tidem-class

Other things related to amsr data: [[<-,amsr-method, amsr-class, composite,amsr-method, download.amsr, read.amsr, subset,amsr-method, summary,amsr-method

Examples

Run this code
# NOT RUN {
d <- read.amsr("f34_20160102v7.2.gz")
asp <- 1/cos(pi*40/180)
plot(d, "SST", col=oceColorsJet, xlim=c(-80,0), ylim=c(20,60), asp=asp)
data(coastlineWorldMedium, package="ocedata")
lines(coastlineWorldMedium[['longitude']], coastlineWorldMedium[['latitude']])
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab