Re: [R] graphs for pretest data

2008-08-24 Thread Jim Lemon
On Sat, 2008-08-23 at 12:04 -0400, Juliet Hannah wrote: > Is there an easy way to make graphs for the following data. I have > pretest and posttest scores for men and > women. I would like to form a 'titlted segment' plot for the data. > That is, make segments joining the scores, > with different t

Re: [R] graphs for pretest data

2008-08-23 Thread hadley wickham
On Sat, Aug 23, 2008 at 1:10 PM, Michael Kubovy <[EMAIL PROTECTED]> wrote: > Dear Juliet, > > Perhaps start here: > > require(lattice) > mwpp <- data.frame(y = c(43,42,26,39,60,60,46,40,41,36,42,54, >58,43,46,56,81,56,70,70,44,52,81,59,69,68), >sex = rep(c(rep('men', 14), rep('women

Re: [R] graphs for pretest data

2008-08-23 Thread Michael Kubovy
Dear Juliet, Perhaps start here: require(lattice) mwpp <- data.frame(y = c(43,42,26,39,60,60,46,40,41,36,42,54, 58,43,46,56,81,56,70,70,44,52,81,59,69,68), sex = rep(c(rep('men', 14), rep('women', 12))), pp = c(rep(c('pre', 'post'), each = 7), rep(c('pre', 'post'), each =

Re: [R] graphs for pretest data

2008-08-23 Thread John Kane
<[EMAIL PROTECTED]> wrote: > From: Juliet Hannah <[EMAIL PROTECTED]> > Subject: [R] graphs for pretest data > To: r-help@r-project.org > Received: Saturday, August 23, 2008, 12:04 PM > Is there an easy way to make graphs for the following data. > I have > prete

[R] graphs for pretest data

2008-08-23 Thread Juliet Hannah
Is there an easy way to make graphs for the following data. I have pretest and posttest scores for men and women. I would like to form a 'titlted segment' plot for the data. That is, make segments joining the scores, with different types of segments for men and women. Example data: menpre <- c(43