I am using LyX with the Sweave module to generate some R figures within a document. I can't seem to get the figures to be smaller, and they tend to take up half a page which is far too large.
I have tried:
<<echo=F, fig=T, width=0.5, height=0.5>>=
bit it throws an error. Putting any value greater than 1 for width and height make my figure lines thick and font huge but the amount of space it takes up is essentially the same.
So is there anyway to make the output figures smaller?
Best Answer
Which version of
LyX
are you using? If you are using 2.0.3 (the newest stable version), you can useknitr
which is more flexible, in my opinion. Note that you have to haveknitr
installed inR
, which you can do byinstall.packages('knitr')
. Then, in LyX, for the module instead ofSweave
chooseRnw (knitr)
.Once you have
knitr
installed inR
and loaded inLyX
, this works well for me: