Hi Jim, thanks for your help. That looks like it might work, but a couple of
things...

1) The resulting 73 (in my case) histograms will be named by their variable
number, not by the variable name contained in the first row. Any way to
include the variable name in the resulting histogram?

2) How can I avoid having the resulting "output.wmf" files overwrite each
other? I'd like to keep all of them, not just the last one.

Any ideas?

Thanks, Mark



On 4/16/07, jim holtman <jholtman@gmail.com> wrote:
>
> try:
>
> win.metafile(file="output.wmf")
> lapply(dataframe[3:20], hist)
> dev.off()
>
> On 4/16/07, mtb954@gmail.com <mtb954@gmail.com> wrote:
> > Hi R-helpers,
> >
> > I wish to produce frequency histograms of all of the variables in my
> > dataframe (except some identifying variables).
> >
> > I have tried
> >
> > >hist(dataframe[,3:20])
> >
> > to produce histograms of the 3rd through 20th variables in my dataframe,
> but
> > R doesn't like that.
> >
> > Could anyone provide a suggestion?
> >
> > Also, once I produce the histograms, I'd like to save them as graphic
> files
> > on my computer. How would I do that using code (rather than Right-click
> |
> > Save as metafile, which would be tedious for dozens of histograms).
> >
> > Thanks, Mark
> >
> >        [[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
> > and provide commented, minimal, self-contained, reproducible code.
> >
>
>
> --
> Jim Holtman
> Cincinnati, OH
> +1 513 646 9390
>
> What is the problem you are trying to solve?
>

	[[alternative HTML version deleted]]

