[R] plotting values "by"

Jeff D. Hamann jeff_hamann at hamanndonald.com
Tue Dec 11 17:44:51 CET 2001


> 1) what kind of plot? What plotted against what?
> 2) same plot, or same page (i.e. same axes, or lots of little plots
> on the one page)?

well both actually. I would like to plot may (scatterplots or functions) in
one plot using color to separate the different species or fits, and I would
like to plot lots of little histograms over time in lots of little plots on
the page.

I've been able to plot lots of histograms in a page, although I need to
figure out how to use expf as a weight. basically I need to plot lots of
little bar charts, which I can do using par( mfcol=c(y,x)).

I've also had some trouble using the lattice package in a R script. when I
type the command xyplot( ht ~ dbh | species ) i get the plots i'm looking
for, when I try to produce the plots (to the screen) I get nothing. I need
to try to produce an eps file though.

thanks,
jeff.


----- Original Message -----
From: "Jason Turner" <jasont at indigoindustrial.co.nz>
To: "Jeff D. Hamann" <jeff_hamann at hamanndonald.com>
Sent: Tuesday, December 11, 2001 5:08 AM
Subject: Re: [R] plotting values "by"


> Don't know if this has been answered or not...
>
> On Sat, Dec 08, 2001 at 10:52:57AM -0800, Jeff D. Hamann wrote:
> > I would like to produce a set of values, on the same chart, from an sql
> > table that is structured like...
> >
> > species dbh ht expf
> > DF 1.2 8.9 10.0
> > DF 2.4 17.3 12.4342
> > DF 3.1 20.9 56.76
> > PP 2.3 16.9 100.0
> > PP 12.8 97.3 40.3
> > PP 8.2 63.0 98.34
> > .
> > .
> > .
> > SS blah, blah, blah...
> >
> > is it possible to, using a single command in the plot command to plot
the
> > different groups on the same plot or will I have to iterate through the
data
> > set (sql select) and use the points() to get this done? Is it possible
to do
> > the same to produce histograms...
> >
>
> 1) what kind of plot? What plotted against what?
> 2) same plot, or same page (i.e. same axes, or lots of little plots
> on the one page)?
>
> Jason
> --
> Indigo Industrial Controls Ltd.
> 64-21-343-545
> jasont at indigoindustrial.co.nz
>

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list