Re: [R] eliminating a do loop

From: ronggui <ronggui.huang_at_gmail.com>
Date: Thu 22 Jun 2006 - 10:40:02 EST

Have you tried these:
>png()
> lapply(simint.by.fit,plot)
>dev.off()

2006/6/22, Barker, Chris [SCIUS] <cbarker1@scius.jnj.com>:
>
> Using a "by() statement, I am preparing ANOVA's for multiple experiments,
> and using simint() to generate confidence intervals.
> This works fine.
>
>
> simint.by.fit <- by(analytes.dfr, list(Assay = analytes.dfr$analyte ),
> function(data) (simint(value ~ tx, data = data,type='Tukey' ) ) )
>
>
> I can separately prepare plots of the confidence intervals, and I can
> prepare separate plots or use for/do loop e.g.
>
> plot( simint.by.fit$"Assay 1" )
> plot( simint.by.fit$"Assay 2")
>
> Is there a way to generate and save multiple -separate- plots without using
> a do loop, e.g. using lapply?.
>
> I tried a couple variations using lapply,
>
> lapply(simint.by.fit,plot)
>
> not surprising, I only get the last plot, the other plots seem to get
> overwritten.
>
> Thanks in advance
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

-- 
ٹ
Department of Sociology
Fudan University



______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Received on Thu Jun 22 10:44:49 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 22 Jun 2006 - 12:11:50 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.