[R] Trellis Plots: translating lattice xyplot() to ggplot()
Rich Shepard
rshepard at appl-ecosys.com
Fri Jul 10 23:57:44 CEST 2015
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
More information about the R-help
mailing list