?plot ?lines Something like this perhaps
plot( menpre, type="l", col="red") lines(menpost, col="blue") lines(womenpre,col="green" lines(womenpost, col= "orange") also have a look at ?par for various options --- On Sat, 8/23/08, Juliet Hannah <[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 > 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,42,26,39,60,60,46) > menpost <- c(40,41,36,42,54,58,43) > > womenpre <- c(46,56,81,56,70,70) > womenpost <- c(44,52,81,59,69,68) > > Thanks! > > Juliet > > ______________________________________________ > 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. __________________________________________________________________ [[elided Yahoo spam]] ______________________________________________ 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.