Learn R Programming

FREddyPro (version 1.0)

plotWindrose: Plot a wind rose

Description

Create a wind rose plot showing the direction and speed of wind

Usage

plotWindrose(data, spd, dir, spdres = 2, dirres = 30, spdmin = 2, spdmax = 20, spdseq = NULL, palette = "YlGnBu", countmax = NA, debug = 0, title = NULL)

Arguments

data
The data frame.
spd
Wind speed (m/s).
dir
Wind direction (degrees).
spdres
Wind speed resolution (m/s).
dirres
Wind direction resolution (degrees).
spdmin
Minimum wind speed (m/s).
spdmax
Maximum wind speed (m/s).
spdseq
The wind speed bins.
palette
Colour palette to be used.
countmax
Maximum for ylim.
debug
An integer. If greater than zero then the function will run in debug mode.
title
The title of the plot.

Examples

Run this code
## Close any previously open graphic devices
graphics.off()

## Load the data
data(fluxes)

## Plot the wind rose
plotWindrose(data=fluxes,spd="wind_speed",dir="wind_dir")

Run the code above in your browser using DataLab