forked from dankelley/oce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plot.cm.Rd
94 lines (85 loc) · 3.73 KB
/
plot.cm.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
\name{plot.cm}
\alias{plot.cm}
\title{Plot cm (current meter) data}
\description{Plot \code{cm} (current meter) data}
\usage{\method{plot}{cm}(x,
which=c(1, 2, 7, 9),
type="l",
adorn=NULL,
drawTimeRange=getOption("oceDrawTimeRange"),
drawZeroLine=FALSE,
mgp=getOption("oceMgp"),
mar=c(mgp[1]+1.5,mgp[1]+1.5,1.5,1.5),
small=2000,
main="",
debug=getOption("oceDebug"),
\dots)
}
\arguments{
\item{x}{an \code{cm} object, e.g. as read by \code{\link{read.cm}}.}
\item{which}{list of desired plot types. These are graphed in
panels running down from the top of the page. See \dQuote{Details}
for the meanings of various values of \code{which}.}
\item{type}{type of plot, as for \code{\link{plot}}.}
\item{adorn}{optional list of \code{\link{expression}}s to be performed
immediately after drawing the panels. (See \code{\link{plot.adp}} for
an example.)}
\item{drawTimeRange}{boolean that applies to panels with time as the
horizontal axis, indicating whether to draw the time range in
the top-left margin of the plot.}
\item{drawZeroLine}{boolean that indicates whether to draw zero
lines on velocities.}
\item{mgp}{3-element numerical vector to use for \code{par(mgp)}, and
also for \code{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.}
\item{mar}{value to be used with \code{\link{par}("mar")}.}
\item{small}{an integer indicating the size of data set to be
considered "small", to be plotted with points or lines using the
standard \code{\link{plot}} function. Data sets with more than
\code{small} points will be plotted with \code{\link{smoothScatter}}
instead.}
\item{main}{main title for plot, used just on the top panel, if there are
several panels.}
\item{debug}{a flag that turns on debugging. Set to 1 to get a
moderate amount of debugging information, or to 2 to get more.}
\item{\dots}{optional arguments passed to plotting functions.}
}
\details{Creates a multi-panel summary plot of data measured by a
current meter. The panels are controlled by the \code{which}
argument, as follows.
\itemize{
\item \code{which=1} or \code{which="u"} for a time-series graph of
eastward velocity, \code{u}, as a function of time.
\item \code{which=2} or \code{which="v"} for a time-series graph of
northward velocity, \code{u}, as a function of time.
\item \code{which=3} or \code{"progressive vector"} for
progressive-vector plot
\item \code{which=4} or \code{"uv"} for a plot of \code{v} versus
\code{u}. (Dots are used for small datasets, and smoothScatter for
large ones.)
\item \code{which=5} or \code{"uv+ellipse"} as the \code{"uv"}
case, but with an added indication of the tidal ellipse,
calculated from the eigen vectors of the covariance matrix.
\item \code{which=6} or \code{"uv+ellipse+arrow"} as the
\code{"uv+ellipse"} case, but with an added arrow indicating the
mean current.
\item \code{which=7} or \code{"depth"} for depth
\item \code{which=8} or \code{"salinity"} for salinity
\item \code{which=9} or \code{"temperature"} for temperature
\item \code{which=10} or \code{"heading"} for heading
\item \code{which=11} or \code{"TS"} for a TS diagram
}
}
\seealso{See \code{\link{read.cm}} for notes on functions relating to
\code{"cm"} objects.}
\examples{
\dontrun{
library(oce)
cm <- read.oce("cm_interocean_0811786.s4a.tab")
summary(cm)
plot(cm)
}
}
\author{Dan Kelley}
\keyword{hplot}