Sorry all R'ers,
the crazy looking data for my query "Multiple Stripcharts" was an
automatic
transpose of what I had pasted. The data was 3 rows indicating three
variables, 12 columns indicating samples. the samples were categorized as
A,B,C,A,B,C,A,B,C,A,B,C, as denoted by the header of the data. I was finally
able to write a loop which goes as
par(mfrow=c(1,3)
f<-c(1,2,3,1,2,3,1,2,3,1,2,3)
for(i in 1:3)
{
stripchart(x1[i,]~f,"jitter",jit=0.2,,pch=16,vert=T)
xbar<-tapply(x1[i,],f,mean)
s<-tapply(x1[i,],f,sd)
n<-tapply(x1[i,],f,length)
sem<-s/(sqrt(n))
arrows(1:3,xbar+2*sem,1:3,xbar-2*sem,angle=90,code=3,length=0.1)
lines(1:3,xbar,pch=4,type="b",cex=2)
}
Any suggestions or alternatives are welcome.
Can u suggest a way to avoid the transpose of data when i mail it as a data
copied from excel worksheet format?
Thanks.
[[alternative HTML version deleted]]