Learn R Programming

oce (version 0.2-1)

as.windrose: Create a windrose object

Description

Create a wind-rose object, typically for plotting with plot.windrose().

Usage

as.windrose(x, y, dtheta = 15)

Arguments

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

Value

  • An object of class "windrose", which is a list containing the following items
  • dataa list containing [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
  • metadataa list containing dtheta, the size of the angle category, in degrees
  • historya history of processing, in the standard oce format.

Details

This is analagous to a histogram, but with breaks being angles.

See Also

Use plot.windrose to produce a summary plot, and summary.windrose to produce a numerical summary.

Examples

Run this code
library(oce)
xcomp <- rnorm(360) + 1
ycomp <- rnorm(360)
wr <- as.windrose(xcomp, ycomp)
summary(wr)
plot(wr)

Run the code above in your browser using DataLab