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 Tel.: +41 (0) 1 635 4315 Fax: +41 (0) 1 635 45 07 email: wantia at ifi.unizh.ch
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
See the function plotCI() in package gregmisc on CRAN. EP At 15:03 25/11/2003 +0100, vous avez ?crit:>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 > >Tel.: +41 (0) 1 635 4315 >Fax: +41 (0) 1 635 45 07 >email: wantia at ifi.unizh.ch > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-help
check out "plotCI" and "plotmeans" in the gregmisc library. Duncan ***************************************** Dr. Duncan Mackay School of Biological Sciences Flinders University GPO Box 2100 Adelaide S.A. 5001 AUSTRALIA Ph (08) 8201 2627 FAX (08) 8201 3015 http://www.scieng.flinders.edu.au/biology/people/mackay_d/index.html -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Jan Wantia Sent: Wednesday, 26 November 2003 12:34 AM To: r-help at stat.math.ethz.ch Subject: [R] plot mean + S.E. over time 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 Tel.: +41 (0) 1 635 4315 Fax: +41 (0) 1 635 45 07 email: wantia at ifi.unizh.ch ______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help