[R] Bivariate Scatter Plots with Lattice

Dennis Murphy djmuser at gmail.com
Fri Sep 23 02:36:19 CEST 2011


I don't see the problem. AFAICT, you want plots of quant vs. sampdate
by chemicals for each of the 37 streams. Essentially, you seem to want
two superimposed time plots in each panel. A time plot is a
scatterplot with a time-ordered (usually horizontal) axis.

If you use ggplot2 or lattice to generate the conditioning plots, the
default is to use common scales for all panels; this makes eyeball
comparisons between plots easier. If you want flexible scales,
particularly on the time axis, you'll need to adjust the scales. It's
a bit easier to do this in ggplot2, but the lattice approach isn't
overly difficult if you have some decent documentation (like the
Lattice book) at hand.

Dennis

On Thu, Sep 22, 2011 at 3:50 PM, Rich Shepard <rshepard at appl-ecosys.com> wrote:
> On Thu, 22 Sep 2011, David Winsemius wrote:
>
>> Scatterplots are for two variables with  continuous valued data. You are
>> asking about one such variable, apparently within some combination of
>> groups of discrete variables. Look at dotplot or bwplot examples.
>
> David,
>
>  Good catch. Point noted.
>
> Thanks,
>
> Rich
>
> ______________________________________________
> R-help at r-project.org 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.
>



More information about the R-help mailing list