[R] R-help Digest, Vol 123, Issue 30

Jim Lemon jim at bitwrit.com.au
Mon May 27 13:49:46 CEST 2013


On 05/27/2013 10:28 AM, Neotropical bat risk assessments wrote:
> Hi all are there any R packages that include "circular" stats similar to
> Oriana (http://www.kovcomp.co.uk/oriana/newver4.html)?
>
> I am interested in looking at annual patterns of bat activity where data
> will have date/times and relative abundance values for each Date.
>
> I would like to have a circular plot with the "circumference" axis the
> 12 months of the year and then a value of relative abundance and likely
> with ggplot2 this can be set to color= species.
>
> Tnx
>
> Bruce
>
Hi Bruce,
Here is a possibility:

library(plotrix)
batact<-matrix(c(sin(seq(0,1.833*pi,length=12))+2+rnorm(36)/4),
  nrow=3,byrow=TRUE)
batpos<-seq(0,1.833*pi,length=12)
radial.plot(batact,batpos,rp.type="ps",main="Bat activity by month",
  line.col=2:4,radial.lim=0:4,label.pos=batpos,labels=month.abb,
  point.symbols=16:18,point.col=2:4,label.prop=1.1,start=pi/2,
  clockwise=TRUE)
legend(-3.5,0.5,paste("Species",1:3),pch=16:18,col=2:4)

Jim



More information about the R-help mailing list