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
kiteChart, to maximise the lablels being added automatically. If possible.
Hi Graham,
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")
There are a number of other options like color and scaling available.
Jim
______________________________________________
R-help@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.