Re: [R] use xyplot to plot mean and CI by groups

2012-05-30 Thread csrabak
Em 29/5/2012 17:42, John Smith escreveu: Dear R users, I am trying to use xyplot to draw group mean and CI. The following is the sample code. [attached code snipped] Did you try the plotmeans function from the gplots package? But I want: 1. Use different colors and symbols to draw

[R] use xyplot to plot mean and CI by groups

2012-05-29 Thread John Smith
Dear R users, I am trying to use xyplot to draw group mean and CI. The following is the sample code. But I want: 1. Use different colors and symbols to draw individual points, CI and the lines connect group means from different time points; 2. Add jitters to x axis to allow CIs not be

Re: [R] use xyplot to plot mean and CI by groups

2012-05-29 Thread Richard M. Heiberger
I am showing two alternatives, both from the HH package. install.packages(HH) The first one does essentially what you request, smithdata - src[c(x, trt)] smithdata$timefactor - factor(src$time) position(smithdata$timefactor) - as.numeric(levels(smithdata$timefactor)) position(smithdata$trt) -