Re: [R] cluster data in lattice dotplot and show stdev

2017-02-16 Thread Duncan Mackay
Hi Luigi I think your data is duplicated > xtabs(~cluster+type+target,my.data) , , target = A type cluster blank negative positive run_1 222 run_2 000 , , target = B type cluster blank negative positive run_1 000

Re: [R] cluster data in lattice dotplot and show stdev

2017-02-16 Thread Jim Lemon
Hi Luigi, Are you looking for something like this? library(plotrix) ylim=c(0,1.7) png("lmplot.png",width=600,height=300) par(mfrow=c(1,2)) brkdn.plot(value~type,data=my.data[my.data$target=="A",], main="Run 1",ylab="Value",xlab="",xaxlab="target",ylim=ylim, mct="mean",md="sd",pch=c("B","N","P"))