as.windrose {oce} | R Documentation |
Create a wind-rose object, typically for plotting with plot.windrose().
as.windrose(x, y, dtheta = 15)
x |
the x component of wind speed (or stress). |
y |
the y component of wind speed (or stress). |
dtheta |
the angle increment (in degrees) within which to classify the data |
This is analagous to a histogram, but with breaks being angles.
An object of class
"windrose"
,
which is a list
containing the following items
data |
a list containing
|
metadata |
a list containing dtheta , the size of the
angle category, in degrees |
processing.log |
a processing log, in the standard oce format. |
Dan Kelley
Use plot.windrose
to produce a summary plot, and
summary.windrose
to produce a numerical summary.
library(oce) xcomp <- rnorm(360) + 1 ycomp <- rnorm(360) wr <- as.windrose(xcomp, ycomp) summary(wr) plot(wr)