[R] graphs for pretest data
Jim Lemon
jim at bitwrit.com.au
Sun Aug 24 10:40:16 CEST 2008
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 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)
>
Hi Juliet,
This looks like spread.labels in the plotrix package might do the job.
Check the second example.
Jim
More information about the R-help
mailing list