Your LyX example has two problems: 1) We don't have your .RData; 2) You didn't library(reshape) and library(lattice). Hence it is not a self-contained reproducible example.
After fixing these two issues, I don't see why lattice graphics can be problematic with knitr. There is no need to print() the plot, and no need to pdf(), either. See the attached PDF I generated. Regards, Yihui -- Yihui Xie <xieyi...@gmail.com> Web: http://yihui.name On Fri, Jul 10, 2015 at 7:18 PM, Rich Shepard <rshep...@appl-ecosys.com> wrote: > On Fri, 10 Jul 2015, David Winsemius wrote: > >> #Generally one needs to complete a pdf() call with: >> >> dev.off() >> >> # And an empty file is the symptom os such a failure. > > > > David, > > I did leave that off the example file, but it make no difference. The > attached is the compiled example.pdf > > Rich > ______________________________________________ > R-help@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.
example.pdf
Description: Adobe PDF document
______________________________________________ R-help@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.