[R] wind rose (oz.windrose) scale

Uwe Ligges ligges at statistik.tu-dortmund.de
Sat Nov 13 17:18:30 CET 2010


Looking at the code shows that the author forgot to scale the plot 
appropriately at all, since xlim/ylim is hardcoded:

     plot(0, xlim = c(-20, 20), ylim = c(-20, 20), type = "n",
         axes = FALSE, xlab = "", ylab = "", ...)

Hence you may want to fix it and provide the patch to the package 
maintainer or contact the maintainer (CCing) of the package and ask him 
to fix it.

Best,
Uwe Ligges


On 12.11.2010 11:55, Alejo C.S. wrote:
> Dear list,
> I trying to make a wind rose plot whit the command oz.windrose, from plotrix
> package. My data, a matrix of percentages with the rows representing speed
> ranges and the columns indicating wind directions was generated
> using bin.wind.records command from same package:
>
>      [,1]      [,2]      [,3]      [,4]      [,5]     [,6]     [,7]
> [1,]  0.4405286 0.0000000 0.1468429 0.4405286 0.4405286 0.000000 0.000000
> [2,] 30.5433186 3.2305433 3.2305433 4.2584435 3.2305433 1.321586 5.873715
> [3,] 23.9353891 2.0558003 0.4405286 1.0279001 0.4405286 0.000000 1.321586
> [4,]  2.0558003 0.2936858 0.0000000 0.0000000 0.0000000 0.000000 0.000000
> [5,]  0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.000000 0.000000
>             [,8]
> [1,]  0.1468429
> [2,] 12.9221733
> [3,]  2.2026432
> [4,]  0.0000000
> [5,]  0.0000000
>
> The problem is when plotting the wind rose, it is always scaled to 30%. In
> my case, the north limb is out of scale in the graph since it represent the
> 59% of winds.
> The command does't have and scale argument, So I can't change the default
> scale settings. Any tip?
>
> Thanks in advance
>
> A.
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list