rose {heR.Misc}R Documentation

Plot a Rose Diagram

Description

Plot a directional vector histogram (rose diagram), i.e., a histogram of directions resembling the shape of a rose

Usage

rose(x, bins = 36, rscale = NULL, labels = TRUE, rings = TRUE, ...)

Arguments

x a vector of direction values
bins Approximate number of bins
rscale Ring Scale, the approximate number of rings for scaling see pretty. NULL value will call pretty with default number of rings
labels (T/F) draw labels for the top 10% largest petals and the cardinal dirctions
rings (T/F) draw scale rings
... extra parameters to the polygon function

Details

This function is used for plotting directional data such as wind direction or the angles of imbricated pebbles in rivers and streams. This is basically an extension of the hist function though I did not implement all of hist. I have placed limits on the range of bins so that they always fall within 0 and 360 (i.e. directions of the compass). The standard color and line adjustment commands work as well but you will need to add annotation (i.e.. main, xlab, ylab) separately (see par).

Value

Produces a rose plot

Author(s)

David Finlayson (with help from Joerg Maeder and Ben Bolker)

See Also

rose2, the updated version of rose by Neil Klepeis

Examples

test <- runif(30) * 360
rose(test)
rose(test, bins=10, rscale=2, labels=TRUE, rings=TRUE, col="cyan", lwd=2)

[Package heR.Misc version 0.0.4 Index]