[R] How to paste graph from R in Latex?

Sarah Goslee sarah.goslee at gmail.com
Sat May 17 14:55:39 CEST 2008


On Sat, May 17, 2008 at 8:18 AM, Jeremiah Rounds
<jeremiahrounds at hotmail.com> wrote:
>
>
>
> Someone mentioned Sweave.  Sweaves value really depends on who you are and what your doing.   Its work cycle is not appropriate for students or anyone that needs rapid cycle prototyping imo.  Its great flaw is that it does not work well with "changing a little something--looking at the results in R"  followed by "changing a little something in latex--looking at the results in dvi" repeated over and over and over again.  The reason is it has to repeat far to much work in each cycle.  Often times repeating long calculations.

Or you could wrap the time-consuming parts in:
if(exists("whatever", where=1)) { do timeconsuming thing}
as long as you are sure that if the results are already there they
don't need to be recalculated.
You can get caught by not having something recalculated that you
expect to be new, but if
you have lengthy calculations (in my case a couple of days for some
things) it is very useful.

Sarah


-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-help mailing list