有谁知道如何添加附加文本并在 R 中的 windrose 图中的任何所需位置扩展其字符?我正在使用该包openair
来绘制风玫瑰图。
考虑我正在使用的以下代码:
windRose(ambala.march.12hrs, ws = "FFF", wd = "WD_Deg",key.header = "(km/h)"
,paddle = F,breaks = c(0,10,20,30,40,50,60)
,key = list(plot.style = c("ticks", "border"),
fit = "all", height = 1,width=0.5)
,key.footer = "(a)",par.settings=list(fontsize=list(text=20),cex=2))
dput(ambala.march.12hrs)
structure(list(Date = structure(c(1L, 35L, 68L, 102L, 136L, 170L,
204L, 238L, 272L, 306L, 340L, 374L, 408L, 442L, 476L, 510L, 544L,
578L, 612L, 646L, 680L, 714L, 748L, 782L, 815L, 849L, 883L, 917L,
951L, 985L, 1019L, 2L, 36L,.... , .Label = c("01-03-1970",
"01-03-1971", "01-03-1972", "01-03-1973", "01-03-1974", "01-03-1975",
"01-03-1976", "01-03-1977", "01-03-1978", "01-03-1979", "01-03-1980",
"01-03-1981", "01-03-1982", "01-03-1983",...), class = "factor"), DD = c(29L, 29L, 29L, 27L,
18L, 27L, 25L, 0L, 29L, 9L, 27L, 29L, 18L, 5L, 20L, 29L, 27L,
29L, 32L, 29L, 29L, 32L, 27L, 29L, 29L, 29L, 23L, 27L, 18L, 27L,
27L, 32L, 29L, 5L, 32L, 36L, 32L, 32L, 32L, 32L, 32L, 32L, 32L,
32L, 32L, 23L, 0L, 27L, 32L, 32L, 29L,......),
WD_Deg = c(290L, 290L, 290L, 270L, 180L, 270L, 250L, 0L,
290L, 90L, 270L, 290L, 180L, 50L, 200L, 290L, 270L, 290L,
320L, 290L, 290L, 320L, 270L, 290L, 290L, 290L, 230L, 270L,
180L, 270L, 270L, 320L, 290L, 50L, 320L, 360L, 320L, 320L,
320L, 320L, 320L, 320L, 320L,....)), .Names = c("Date", "DD",
"FFF", "WD_Deg"), class = "data.frame", row.names = c(NA, -1052L
))
我在这个数据框中调用FFF
风速和WD_Deg
风向。
任何建议都非常受欢迎。