plot.windrose {oce} | R Documentation |
Plot a wind-rose diagram
## S4 method for signature 'windrose' plot(x, type=c("count","mean","median","fivenum"), convention=c("meteorological", "oceanographic"), mgp=getOption("oceMgp"), mar=c(mgp[1], mgp[1], 1+mgp[1], mgp[1]), col, ...)
x |
a |
type |
the thing to be plotted, either the number of counts in
the angle interval, the mean of the values in the interval, the
median of the values, or a |
convention |
string indicating whether to use meteorological convention or oceanographic convention for the arrows that emanate from the centre of the rose. In meteorological convenction, an arrow emanates towards the right on the diagram if the wind is from the east; in oceanographic convention, such an arrow indicates flow to the east. |
mgp |
3-element numerical vector to use for |
mar |
value to be used with |
col |
an optional list of colours to use. If not set, the colours will
be |
... |
optional arguments passed to plotting functions. |
Creates a wind-rose diagram.
Dan Kelley
as.windrose
creates a wind-rose object, and
summary.windrose
produces a numerical summary.
library(oce) opar <- par(no.readonly = TRUE) xcomp <- rnorm(360) + 1 ycomp <- rnorm(360) wr <- as.windrose(xcomp, ycomp) par(mfrow=c(1,2)) plot(wr) plot(wr, "fivenum") par(opar)