Whenever I make graphs from R to be included in Latex, I find myself scuttling back and forth between R to specify the size of the output and Latex to play with the \includegraphics[scale=??].
It takes a lot of trial and error because:
- I don't see the change interactively. I only know whether something works after compiling (which adds up time annoyingly).
- Different R outputs, e.g. pdf, png, have different measurement units (pdf is in inch, png is in what unit? I'm not even sure). As someone who's only familiar with metric units, this adds to the confusion.
- When the graphics appears on Latex, it also gets changed yet another time due to the border length of the document.
Adding these three sources of unpredictability, it takes an inordinate amount of time to simply specify size. Ideally, I want to be making changes interactively only at one place instead of going back and forth.
Is there any best practice I should follow?
##@knitr MYCHUNKNAMEto identify parts in your script. – Nicholas Hamilton Jun 20 '13 at 01:50