Re: [R] circular statistics plotting

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Fri 07 Oct 2005 - 05:54:30 EST

Jason Horn wrote:

> Hi all,
>
> I'm new to the list here, and I have what I think is a simple
> question. Using the "circular" package, is there a way to plot the
> mean and variance on top of a rose diagram or other plot of the data?

The package seems to be very well designed: I did not know anything about this package at the time reading your question. Reading the help page and trying out the first example, it took me less than a minute to figure it out (hence I wonder why you haven't?). From the example:

   library(circular)
   x <- circular(runif(50, 0, 2*pi))
   rose.diag(x, bins = 18, main = 'Uniform Data')    ## plot the mean:
   points(mean(x), col = "red")

Uwe Ligges

> Thanks in advance...
>
> - Jason
>
>
> Jason Horn
> Boston University Department of Biology
> 5 Cumington Street Boston, MA 02215
>
> jhorn@bu.edu
> office: 617 353 6987
> cell: 401 588 2766
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Oct 07 06:12:17 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:26:56 EST