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

2015-07-11 Thread Yihui Xie
I guess you didn't tell us you were compiling the document with dvips (BTW, I'm surprised that dvips is still alive today...), otherwise the solution would be simply to use the postscript device instead of the default pdf device (i.e. use the chunk option dev='postscript'). Hopefully you learned so

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

2015-07-11 Thread Rich Shepard
On Fri, 10 Jul 2015, Yihui Xie wrote: Your LyX example has two problems: Yihui, et al.: All fixed now. After adding the specific libraries the chuck calling xyplot() to produce the graphic caused an error when I tried to generate a dvips preview: LaTeX Error: File 'figure/unnamed-chunk-7-1