Learn R Programming

RNRCS (version 0.2.5)

plotSCAN.windrose: plotSCAN.windrose

Description

A wind rose plotting function for SCAN sites. For a given SCAN site ID, and requested period, a wind rose is output.

Usage

plotSCAN.windrose(scan_site, DayBgn, DayEnd, speed_bins = 10, dir_bins = 15,
  units = c("metric", "imperial"))

Arguments

scan_site

The numeric ID for a valid SCAN site.

DayBgn

Specify the beginning date (as YYYY-MM-DD ) for the returned data.

DayEnd

Specify the end date (as YYYY-MM-DD ) for the returned data.

speed_bins

Optional. The number of bins to return wind speeds in. Defaults to 10.

dir_bins

Optional. The number of bins to return wind directions. Defaults to 36 bins (10 degree increments).

units

Optional. The format speed data are returned in (either "metric" or "imperial").

Value

Returns a wind rose for the requested parameters as a ggplot2 object.

References

Downloads <https://wcc.sc.egov.usda.gov/reportGenerator>

See Also

grabNRCS.data()

Examples

Run this code
# NOT RUN {
#Returns a wind rose for Nunn #1, for data for the period between Jan 1, 2017 and Feb 1, 2017.
# }
# NOT RUN {
plotSCAN.windrose(scan_site = 2017, DayBgn = "2017-01-01", DayEnd = "2017-02-01")
# }

Run the code above in your browser using DataLab