I have a dataframe comprising a vector of E. coli concentrations, a vector of months when the samples were taken, and a vector of sampled sites. I?d like to produce a lattice with sites along the horizontal axis, and months on the vertical. Each site-month box would then contain concentrations ranging along its x axis. I think this would use dotchart (or possibly stripchart) in the lattice. I?ve been reading the lattice and xyplot documents and I?m overwhelmed. I?d appreciate help in how to write the call. David
Need help using lattice
3 messages · David Winsemius, PIKAL Petr, John Kane
Hi Please do not use HTML formating. Please provide some toy data if you want to get reasonable help. You could also look at ggplot package, e.g. https://ggplot2.tidyverse.org/reference/facet_grid.html Cheers Petr
-----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of Parkhurst, David F. Sent: Sunday, February 7, 2021 8:02 PM To: r-help at r-project.org Subject: [R] Need help using lattice I have a dataframe comprising a vector of E. coli concentrations, a vector of months when the samples were taken, and a vector of sampled sites. I?d like to produce a lattice with sites along the horizontal axis, and months on the vertical. Each site-month box would then contain concentrations ranging along its x axis. I think this would use dotchart (or possibly stripchart) in the lattice. I?ve been reading the lattice and xyplot documents and I?m overwhelmed. I?d appreciate help in how to write the call. David [[alternative HTML version deleted]]
http://adv-r.had.co.nz/Reproducibility.html http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
On Mon, 8 Feb 2021 at 03:11, PIKAL Petr <petr.pikal at precheza.cz> wrote:
Hi Please do not use HTML formating. Please provide some toy data if you want to get reasonable help. You could also look at ggplot package, e.g. https://ggplot2.tidyverse.org/reference/facet_grid.html Cheers Petr
-----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of Parkhurst,
David
F. Sent: Sunday, February 7, 2021 8:02 PM To: r-help at r-project.org Subject: [R] Need help using lattice I have a dataframe comprising a vector of E. coli concentrations, a
vector of
months when the samples were taken, and a vector of sampled sites. I?d like to produce a lattice with sites along the horizontal axis, and
months on
the vertical. Each site-month box would then contain concentrations
ranging
along its x axis. I think this would use dotchart (or possibly stripchart) in the
lattice. I?ve
been reading the lattice and xyplot documents and I?m overwhelmed. I?d
appreciate help in how to write the call.
David
[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.
John Kane Kingston ON Canada [[alternative HTML version deleted]]