[R] sweave and lessR
Scott Cushman
scushman at concentric.net
Sun Dec 16 21:12:46 CET 2012
Thank you for the reply. With many calls to Density() I miss Sweave taking care of the naming of the files and the generating of the \includegraphics statements, but I guess this will work.
On Dec 16, 2012, at 2:54 PM, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
> On 12-12-16 12:42 PM, Scott Cushman wrote:
>>
>> Hello
>>
>> I am using sweave with the Density() function from lessR package. However, unlike the older color.density() function, Density() does not work with
>> the standard graphic output functions in R, such as pdf. Is there away to include figures fgenerated rom lessR in sweave documents?
>
> Tell Density to write to "foo.pdf", then just use \includegraphics{foo} in your Sweave document. (This assumes you're using pdflatex; it looks as though you can't do it at all if you can't handle PDF figures.)
>
> Duncan Murdoch
>
More information about the R-help
mailing list