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

Hadley Wickham h.wickham at gmail.com
Fri Jul 10 23:50:53 CEST 2015


Have you tried explicitly print()ing the lattice graphics in your knitr doc?

Hadley

On Friday, July 10, 2015, 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.
>


-- 
http://had.co.nz/

	[[alternative HTML version deleted]]



More information about the R-help mailing list