[R] plot mean + S.E. over time

Frank E Harrell Jr feh3k at spamcop.net
Tue Nov 25 15:27:46 CET 2003


On 25 Nov 2003 15:03:49 +0100
"Jan Wantia" <wantia at ifi.unizh.ch> wrote:

> Hi, there!
> 
> I finally became a disciple of 'R', after having lost years of my life 
> handling data with a popular, rather wide-spread spreadsheet-software.
> 
> Now I want to plot the results of many runs of my simulation over time, 
> so that the means +/- Standard error are on the y-axis, and time on the 
> x-axis.
> 
> I have tried 'boxplot', with timesteps as the grouping variable, but did
> 
> not manage to replace quartils by S.E.
> Then, with 'plot' I do not know how to handle the data of 100 runs for a
> 
> given time to produce the mean and S.E.
> 
> Are there any suggestions? Any help would be appreciated!
> 
> Cheers, Jan
> 
> -- 
> 
> ______________________________________________________
> 
> Jan Wantia
> Dept. of Information Technology, University of Zürich
> Andreasstr. 15
> CH 8050 Zürich
> Switzerland
> 

You might look at the xYplot function in the Hmisc package.
---
Frank E Harrell Jr    Professor and Chair            School of Medicine
                      Department of Biostatistics    Vanderbilt University




More information about the R-help mailing list