Hello R-list members, I’m trying to make a min-avg-max plot (like a boxplot, without box and outliers, i.e., for each class of "x" a vertical line indicating the range (max-min) and an horizontal line or point indicating the mean) with data like: Year Avg Min Max 98 10 7 13 99 12 10 15 01 11 6 14 Which command should be used? Many thanks, Antonio Olinto ----------------------------------------------------- E-Mail enviado por WebMail - http://www.bignet.com.br -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
I don't know about boxes, per se, but how about plotting the average and then error bars with termini at the min and max? See archives regarding how to plot confidence intervals, or standard error plots. Also, http://lark.cc.ukans.edu/~pauljohn/R/statsRus.html, has code for this. Good luck, ***************************** Martin Henry H. Stevens HStevens at muohio.edu tel: (513) 529 - 4206 FAX: (513) 529 - 4243 338 Pearson Hall Botany Department Miami University Oxford, OH 45056 http://www.muohio.edu/~botcwis/bot/henry.html ----- Original Message ----- From: <aolinto at bignet.com.br> To: <r-help at stat.math.ethz.ch> Sent: Tuesday, September 25, 2001 10:45 AM Subject: [R] max-min plot> Hello R-list members, > > I'm trying to make a min-avg-max plot (like a boxplot, without > box and outliers, i.e., for each class of "x" a vertical line > indicating the range (max-min) and an horizontal line or point > indicating the mean) with data like: > > Year Avg Min Max > 98 10 7 13 > 99 12 10 15 > 01 11 6 14 > > Which command should be used? > > Many thanks, > > Antonio Olinto > > > ----------------------------------------------------- > E-Mail enviado por WebMail - http://www.bignet.com.br > > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-> r-help mailing list -- Readhttp://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html> Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch >_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. _._>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Dear R-list members, Thanks for those who replied my e-mail (Frank, Martin and Uwe) on "max-min plot". Following Uwe's suggestion I did my job as showed bellow. This example should be useful for begginers (like myself). Thanks, Antonio ------------------------------ Year Value Z 1 1994 0.15062 Zm 2 1995 0.20622 Zm 3 1996 0.20373 Zm 4 1997 0.22153 Zm 5 1998 0.23426 Zm 6 1999 0.23533 Zm 7 1994 0.14075 Z- 8 1995 0.17051 Z- 9 1996 0.16989 Z- 10 1997 0.18350 Z- 11 1998 0.21494 Z- 12 1999 0.19841 Z- 13 1994 0.16048 Z+ 14 1995 0.24193 Z+ 15 1996 0.23757 Z+ 16 1997 0.25956 Z+ 17 1998 0.25357 Z+ 18 1999 0.27225 Z+> plot(Year,Value,type="n",xlab="year",ylab="Z") > points(Year[c(1:6)],Value[c(1:6)],pch=3) > segments(Year[c(7)],Value[c(7)],Year[c(13)],Value[c(13)]) > segments(Year[c(8)],Value[c(8)],Year[c(14)],Value[c(14)])... -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._