plotWD: Plots for 'Windata' objects

Description Usage Arguments Author(s) See Also Examples

View source: R/plotWD.R

Description

The function allows to describe graphically the main features of the current wind speed and direction. This function generates histograms, correlations, wind roses, profile graphs and boxplots. It also allows to evaluate the fit of the data to probability distributions.

Usage

1
2
plotWD(datawd, ane = NA, var = NA, type = c("histogram"), by = "none",
  since = NULL, to = NULL, binwidth = 1)

Arguments

datawd

an object of class windata.

ane

a vector of character strings with anemometers names to plot.

var

a vector of character strings the the variables to plot: ave, min, max, freq.

type

type of plot: histogram, rose, profiles and boxplot. See also Details.

by

an optional string stating if the plot is divided in panels by month or hour.

since

an optional string with initial date to be taken into account to make the plot. The string format is 'YYYY-MM-DD'.

to

an optional string indicating final date to be taken into account to make the plot. The string format is 'YYYY-MM-DD'.

binwidth

an optional bindwidth interval used in histogram plots.

Author(s)

Mariano Bonoli Escobar, Diego Edwards, Valeria Gogni, Ruben Bufanio

See Also

tableWD, plotwindserie, plotcalendar

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
data("wdMtTom", package = "WindResource")
data("wd10", package = "WindResource")

## Getting anemometer names
wdMtTom$ane$ane.names
wd10$ane$ane.names

## Histogram
plotWD(data=wdMtTom, ane="Anem24bMS", type="histogram", by="none")
plotWD(data=wdMtTom, ane="Anem24bMS", type="histogram", by="none", binwidth=.5)
plotWD(data=wdMtTom, ane="Anem24bMS", type="histogram", by="hour")

## Rose
plotWD (data=wdMtTom, ane=c("Anem24bMS", "Anem37aMS"), var="mean", type="rose", by="none")
plotWD (data=wdMtTom, ane=c("Anem37aMS"), var="mean", type="rose", by="month")

## Boxplot
plotWD (data=wdMtTom, ane="Anem24bMS", type="boxplot", by="hour")
plotWD (data=wdMtTom, ane="Anem24bMS", type="boxplot", by="month")

## Profile
plotWD (data=wdMtTom, ane=c("Anem24aMS","Anem24bMS", "Anem37aMS" ,"Anem37bMS"), var="ave", type="profile", by="hour")
plotWD (data=wdMtTom,  ane=c("Anem24aMS","Anem24bMS", "Anem37aMS" ,"Anem37bMS"),  var="ave", type="profile", by="month")

## Turbulence Analysis
plotWD (data=wd10, ane="ane10", type="turbulence")

## Fit
plotWD (data=wdMtTom, ane="Anem37aMS", type="fit")

mbonoli/WindResource documentation built on May 22, 2019, 12:56 p.m.