Learn R Programming

oce (version 0.1-76)

plot.windrose: Plot a wind rose diagram

Description

Plot a wind-rose diagram

Usage

plot.windrose(x, type=c("count","mean","median","fivenum"), col, ...)

Arguments

x
a windrose object, e.g. as created by as.windrose.
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 fivenum representation of the values.
col
an optional list of colours to use. If not set, the colours will be c("red", "pink", "blue", "lightgray"). For the first three types of plot, the first colour in this list is used to fill in the rose, the third is used for the
...
optional arguments passed to plotting functions.

Details

Creates a wind-rose diagram.

See Also

as.windrose creates a wind-rose object, and summary.windrose produces a numerical summary.

Examples

Run this code
library(oce)
xcomp <- rnorm(360) + 1
ycomp <- rnorm(360)
wr <- as.windrose(xcomp, ycomp)
par(mfrow=c(1,2))
plot(wr)
plot(wr, "fivenum")

Run the code above in your browser using DataLab