Re: [R] Windrose Percent Interval Frequencies Are Non Linear! Help!

From: Brittain Briber <brittbriber_at_yahoo.com>
Date: Fri, 08 Apr 2011 06:08:04 -0700 (PDT)


Hadley -
Thanks for your answers.  I didnt think of it that way and what you say makes complete sense.  Truthfully, however, I dont care to maintain an equal area for each increment.  When discussing frequency distributions on the rose, having a diagram with equally spaced intervals would be more intuitive since it is the distance away from the origin, not the area, that designates frequency.  Do you two or anyone else out there happen to know if it is possible to specify the width of the intervals in windrose?  Is there a parameter that I can pass along that would do this?  Below is a reproducible script in which you can see the uneven interval spacing.  And thanks again for your answers.

Best
Britt

dir <- circular(runif(100, 0, 360), units="degrees") mag <- rgamma(100, 15)
sample <- data.frame(dir=dir, mag=mag)
par(mfrow=c(2,2))
res <- windrose(sample)



From: Hadley Wickham <hadley_at_rice.edu>
To: Peter Ehlers <ehlers_at_ucalgary.ca>

@r-project.org>
Sent: Thursday, April 7, 2011 9:47 PM
[[elided Yahoo spam]]

>> Does anyone with specific windrose experience know how to adjust the
>> graphic such that the data and the percent intervals are evenly spaced?
>>
>> Hopefully I am making sense here....
>
> How about giving us a reproducible example?
> Code is better than mere description;
> code + description is best.

The "problem" is probably that A = pi r ^2, and the percent intervals are spaced evenly on the square root scale to keep areas from being distorted.

Hadley

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/


      
	[[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.

Received on Fri 08 Apr 2011 - 13:09:49 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 08 Apr 2011 - 16:40:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive