'R: Customizing seasons for windRose plot in Openair
I am trying to plot a wind rose plot of a site using openair package in R. The code snippet is:
windRose(df, type = "season", paddle = F, key.position = "right")
and the plot is: 
We know, this package openair considers seasons DJF as winter, MAM as spring and so on. However, in this region another categorization for seasons is commonly used as follows:
- winter: Dec Jan Feb
- Pre-monsoon: Mar Apr May Jun15 (i.e. till 15th of June)
- Monsoon: 15Jun Jul Aug Sep (i.e. from 15th of June)
- Post-monsoon: Oct Nov.
I am new in R, hence finding difficulty to plot the wind rose with the later categorization and putting the titles accordingly. I would highly appreciate any help.
Thanks!
Solution 1:[1]
Function windRose has an argument "type" which accepts a custom character or factor vector to facet (and label) the plot by.
- add a column for your custom season, e.g. "my_custom_season"
- make this column contain the corresponding season for each row ("winter", "pre-monsoon" etc.)
- call
windRose(your_data,...,type="my_custom_season")
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | I_O |
