[R] output a sequence of plots

From: Paul E. Green <pgreen_at_umich.edu>
Date: Thu 06 Oct 2005 - 01:54:45 EST

I can output two histograms of variables AXFILTERED and AZPTOP as follows:

win.metafile(filename="C:/AXFILTERED.emf",pointsize=12) hist(AXFILTERED,breaks=40)

win.metafile(filename="C:/AZPTOP.emf",pointsize=12) hist(AZPTOP,breaks=40)

But, I actually have a dataframe of 120 variables that I would like histograms of. Any solutions that would save me from repeating this code 120 times? Can I pass arguments inside quotes? Can I write a function to do this?

Paul Green

        [[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 Received on Thu Oct 06 02:02:31 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:36 EST