Learn R Programming

bReeze (version 0.1-0)

plotTurbulence: Plot turbulence intensity

Description

Plots sectoral turbulence intensity from a turbulence object in a rose plot.

Usage

plotTurbulence(turb, ...)

Arguments

turb
Turbulence intensity object created by turbulence.
...
Optional graphical parameters, see below for details.

encoding

UTF-8

Optional graphical parameters

The following graphical parameters can optionally be added to customize the plot:
  • col: Vector of colours -- one colour for each wind speed bin or a single colour ifturbulenceonly contains the total turbulence intensity per direction sector.
  • cex: Numeric value, giving the amount by which text on the plot should be scaled relative to the default (which is 1).

See Also

turbulence

Examples

Run this code
# load and prepare data
data(winddata)
set1 <- createSet(height=40, v.avg=winddata[,2], v.std=winddata[,5], 
	dir.avg=winddata[,14])
ts <- formatTS(winddata[,1])
neubuerg <- createMast(time.stamp=ts, loc=NULL, desc=NULL, set1)
neubuerg <- clean(neubuerg)

# calculate turbulence intensity
neubuerg.ti <- turbulence(neubuerg, 1)

# plot turbulence intensity
plotTurbulence(neubuerg.ti)

# change colour and text size
plotTurbulence(neubuerg.ti, col="darkgray", cex=1.3)
plotTurbulence(neubuerg.ti, col=3, cex=0.9)

Run the code above in your browser using DataLab