## S3 method for class 'ctd':
plot(x, which,
col=par("fg"), fill,
borderCoastline=NA, colCoastline="lightgray",
eos=getOption("oceEOS", default='gsw'),
ref.lat=NaN, ref.lon=NaN,
grid=TRUE,
coastline="best",
Slim, Clim, Tlim, plim, densitylim, N2lim, Rrholim,
dpdtlim, timelim,
lonlim, latlim,
clongitude, clatitude, span, showHemi=TRUE,
lonlabel=NULL, latlabel=NULL, sides=NULL,
projection=NULL, parameters=NULL, orientation=NULL,
latlon.pch=20, latlon.cex=1.5, latlon.col="red",
cex=1, cex.axis=par('cex.axis'),
pch=1,
useSmoothScatter=FALSE,
df,
keepNA=FALSE,
type='l',
adorn=NULL,
mgp=getOption("oceMgp"),
mar=c(mgp[1]+1.5,mgp[1]+1.5,mgp[1]+1.5,mgp[1]+1),
inset=FALSE,
add=FALSE,
debug=getOption("oceDebug"),
...)
ctd
object, e.g. as read by read.ctd
, or a
list containing items named salinity
and temperature
.which
is not supplied, a default will be used. This default will be
c(1,2,3,5)
if the CTD is in profiling mode (i.e.
if x@metadata$deploymentType=="profile"
plot.coastline
if a map is included in which
.plot.coastline
if a map is included in which
. Set
to NULL
to avoid filling."unesco"
or
"gsw"
.TRUE
to get a grid on all plots.which="map"
. This may be a coastline object, whether built-in or
supplied by the user, or a character string. If the later, it may be the
name of a built-in coastline (
plot.coastline
. Using these arguments permits reasonably
simple customization. If theNULL
, no
projection will be used; the map will simply show longitude and latitude
in a cartesian frame, scaled to retain shapes at the centre. If this is
the string "automat
projection
.projection
.par
)par
)par
).TRUE
to use
smoothScatter
instead of plot
to draw
the plot.swN2
as the
argument named df
.NA
values in linegraphs,
which will yield breaks in the lines.plot
.par(mgp)
, and
also for par(mar)
, computed from this. The default is
tighter than the R default, in order to use more space for the data
and less for the axes.par("mar")
.TRUE
for use within plotInset
. The
effect is to prevent the present function from adjusting margins, which
is necessary because margin adjustment is the basis for the methlength(which)=1
, and it will yield odd results if the value of
which
does not match that in the previous plots.df
, for use in swN2 calculations.plot.cctd
relied on
a now-defunct argument fill
to control colours; colCoastline
is to be
used now, instead. Also, now it is possible to set the edge of coasts and
international boundaries, with borderCoastline
.which
argument.
Normally, 4 panels are specified with the which
, but it can
also be useful to specify less than 4 panels, and then to draw other
panels after this call.If only 2 panels are requested, they will be drawn side by side.
If more than one panel is drawn, then on exit from plot.ctd
,
the value of par
will be reset to the value it had before the
function call. However, if only one panel is drawn, the adjustments
to par
made within plot.ctd
are left in place, so that
further additions may be made to the plot.
ctd-class
explains the structure
of CTD objects, and also outlines the other functions dealing with them.library(oce)
data(ctd)
plot(ctd)
Run the code above in your browser using DataLab