[18980] in s-news-athena

home help back first fref pref prev next nref lref last post

[S] Re:

daemon@ATHENA.MIT.EDU (James Lymp)
Thu Aug 19 15:45:25 1999

Message-Id: <00bf01beea7b$072513e0$cecf8e8c@u.washington.edu>
From: "James Lymp" <lymp@u.washington.edu>
To: <keke@cvmbs.colostate.edu>, "S-plus" <s-news@wubios.wustl.edu>
Date: Thu, 19 Aug 1999 12:42:52 -0700
Mime-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit


Assuming that we read in the data as follows:

x_read.table('filename',head=T)
attach(x)

Then the command plot(factor(time),Conc) gives a nice set of boxplots. But
to answer the question, the commands:

plot(time,Conc)
a_tapply(time,time,mean)
b_tapply(Conc,time,mean)
d_sqrt(tapply(Conc,time,var)/tapply(Conc,time,length))
points(a,b,pch='-',cex=3)
points(a,b+2*d,pch='-',cex=3)
points(a,b-2*d,pch='-',cex=3)

should be pretty close to what you want. I am sure there is an easier way.
Hopefully someone else will follow-up.

-----
James Lymp
http://staff.washington.edu/lymp
lymp@u.washington.edu
-----

----- Original Message -----
From: Ying Ou <keke@cvmbs.colostate.edu>
To: S-plus <s-news@wubios.wustl.edu>
Sent: Thursday, August 19, 1999 12:08 PM


Can anyone suggest an easy way to plot a line graph with mean and
standard deviation in the plot without further transformation of the
data format?
Thank you so much for the help.

Ying



-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

home help back first fref pref prev next nref lref last post