Learn R Programming

bReeze (version 0.1-0)

plotAep: Plot annual energy production

Description

Plots sectoral annual energy production (AEP) from an aep object in a rose plot.

Usage

plotAep(aep, show.total=TRUE, ...)

Arguments

aep
AEP object created by aep.
show.total
If TRUE the total AEP is added to the plot.
...
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 ifaeponly contains the total AEP.
  • cex: Numeric value, giving the amount by which text on the plot should be scaled relative to the default (which is 1).

See Also

aep

Examples

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

# calculate AEP
neubuerg.wp <- profile(neubuerg, v.set=c(1, 2), dir.set=1)
pw.56 <- readPC(system.file(package="bReeze", "powercurves", 
	"PowerWind_56_900kW.wtg"))
neubuerg.aep <- aep(neubuerg.wp, pw.56, 71)

# plot AEP
plotAep(neubuerg.aep)
plotAep(neubuerg.aep, show.total=FALSE)	# omit total AEP

# change colour and text size
plotAep(neubuerg.aep, col=gray(5:0 / 5), 0.8)
plotAep(neubuerg.aep, col=rainbow(5), cex=1.1)

Run the code above in your browser using DataLab