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

Rich Shepard
2015-07-10T21:57:44Z

On Fri, 10 Jul 2015, Hadley Wickham wrote:

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

Hadley,

   Only now. Had not thought of trying this before.

pdf('carlin-1-descriptive.pdf')
print(xyplot(value ~ sampdate | variable, data=carlin.1.melt, rm.na = T))

No error messages, but no graphic, either. Without specifying the pdf
device, TeX complains it cannot find a graphics device and lists bit-mapped,
ps and svg devices.

   Most likely I do not have the correct syntax.

Thanks,

Rich