R:在 Openair 中自定义 WindRose 图的季节
我正在尝试使用 R 中的 openair 包绘制站点的风玫瑰图。代码片段为:
windRose(df, type = "season", paddle = F, key.position = "right")
情节是:
我们知道,此软件包 openair
将季节 DJF 视为冬季,MAM 视为春季,很快。然而,在该地区,通常使用另一种季节分类,如下:
- 冬季:十二月、一月、二月
- 季风前:三月、四月、五月、六月 15 日(即直到 15 日6月)
- 季风:6月15日7月8月9月(即从6月15日开始)
- 季风后:10月11月。
我是R新手,因此发现很难用后来的分类来绘制风玫瑰图并相应地放置标题。我将非常感谢任何帮助。
谢谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
函数
windRose
有一个参数“type”,它接受自定义字符或因子向量来对绘图进行分面(和标签)。windRose(your_data,...,type=" my_custom_season")
Function
windRose
has an argument "type" which accepts a custom character or factor vector to facet (and label) the plot by.windRose(your_data,...,type="my_custom_season")