Re: [R] Preparing data frame for Plotrix kiteChart

2010-09-19 Thread Graham Smith
Jim, Ben's solution is excellent, I just thought I would add an alternative starting with the X dataframe: x2<-matrix(X$Count,ncol=3) rownames(x2)<-unique(X$Distance) colnames(x2)<-unique(X$Species) kiteChart(t(X3),xlab="Distance",ylab="Species") Thanks, very useful to see an alternative appr

Re: [R] Preparing data frame for Plotrix kiteChart

2010-09-18 Thread Jim Lemon
On 09/18/2010 03:32 AM, Graham Smith wrote: ... What I am hoping for is: an x-axis labelled "Distance" with tick marks at 0, 5, 10,15,20 and 25. And, an y-axis labelled "Species" and tick marks labelled A, B and C. So I would appreciate some help on how the data should be prepared for kiteCha

Re: [R] Preparing data frame for Plotrix kiteChart

2010-09-17 Thread Graham Smith
Ben, Thanks for your help on this. Obviously a bit of a mental block on my part, as it seems painfully obvious now. Graham __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.

Re: [R] Preparing data frame for Plotrix kiteChart

2010-09-17 Thread Ben Bolker
Graham Smith myotis.co.uk> writes: > > Although, I can fix this, I am trying to sort out something as > straighforward as possible for my students, and I have some questions > that hopefully someone can help me with. > > My data is: > > Species DistanceCount > A 5

[R] Preparing data frame for Plotrix kiteChart

2010-09-17 Thread Graham Smith
Although, I can fix this, I am trying to sort out something as straighforward as possible for my students, and I have some questions that hopefully someone can help me with. My data is: Species DistanceCount A 5 0 A 10 5 A 15 5