[R] Trellis Plots: translating lattice xyplot() to ggplot()

Jeff Newmiller
2015-07-10T21:58:19Z

I don't actually use lattice very much, but I have no difficulty setting up
a lattice plot in a knitr/rmarkdown file, and can think of no reason why you
might have concluded that knitr does not support lattice.

Sorry, not going to translate your non-reproducible example... please go the
extra little effort to dput some example data so we can communicate clearly
about your problem. [1]

[1]
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live
Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.

On July 10, 2015 2:09:45 PM PDT, Rich Shepard <rshepard at
appl-ecosys.com> wrote:
>Hadley's ggplot2 book is quite old and a new version is in the works,
>but
>not yet out. I've been using lattice graphics but the knitr package
>doesn't
>support lattice, only basic plots and ggplot2. My Web searches for
>Trellis
>plots in ggplot2 equivalent to those in lattice have not been
>productive.
>
>  I would appreciate a pointer to a resource that would teach me how to
>translate from lattice xyplot() to ggplot2 ggplot().
>
>   This is one such plot needing translation:
>
>xyplot(value ~ sampdate | variable, data=carlin.1.melt, rm.na = T)
>
>Rich
>
>______________________________________________
>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.