windrose_add_windsector: Adding Wind Sector for Windrose Plots

View source: R/windrose.R

windrose_add_windsectorR Documentation

Adding Wind Sector for Windrose Plots

Description

The windrose plot allows to specify one or multiple segments to be highlighted on the plot. This is a helper function to place the segments.

Usage

windrose_add_windsector(x, ff, col, offset = 0.02)

Arguments

x

list containing vectors of length 2 or a matrix with two rows. If the list is named, or the matrix has row names, the names will be used to label the segments.

ff

wind speed (in case of plot type "density", or density in case of plot type "histogram". Used to draw the polygon and to plot the labels (if needed).

col

color of the wind sector.

offset

offset for text adjustment.

Author(s)

Reto Stauffer


retostauffer/Rfoehnix documentation built on June 5, 2023, 11:39 p.m.