Description Usage Arguments Details Value Examples
View source: R/data_visualisation.R
Plot a wind rose diagram, showing the relative frequency of winds coming from each point of the compass
1 2 3 |
data |
A data frame containing wind speed and direction in degrees |
speed |
The name of the column in the data frame containing wind speed |
direction |
The name of the column in the data frame containing wind direction |
spdres |
Resolution of wind speed bins |
dirres |
Resolution of wind direction bins |
spdmin |
Maximum wind speed to use in binning |
spdmax |
Minimum wind speed to use in binning |
palette |
Palette to use in plotting |
countmax |
Maximum axis limit for plotting |
Radar plot code modified from answers to this Stackoverflow question: https://stackoverflow.com/questions/9614433/creating-radar-chart-a-k-a-star-plot-spider-plot-using-ggplot2-in-r/10820387
A ggplot2 object containing the windrose plot
1 2 3 4 5 | # Assuming EasyWeather data files called 2018.csv and 2019.csv are in local
# directory:
years <- c(2018,2019)
test_data <- merge_years(years)
p <- plot_windrose(test_data, "wind_km_h", "wind_direction_deg", dirres = 15)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.