Tag Archives: Sweave

pgfSweave now on CRAN

At long last pgfSweave has finally made its way to CRAN.


The pgfSweave R package is about speed and style of graphics. For speed, the package provides capabilities for “caching” graphics generated with Sweave on top of the caching funcitonality of cacheSweave. For style the pgfSweave package facilitates the integration of R graphics with LaTeX reports through the tikzDevice package and eps2pgf utility. With these tools, figure labels are converted to LaTeX strings so they match the style of the document and the full range of LaTeX math symbols/equations are available.

The backbone of pgfSweave is a a new driver for Sweave (pgfSweaveDriver). The driver provides new chunk options tikz, pgf and external on top of the cache option provided by cacheSweave.

This package started as a fork (hack) of cacheSweave to suit our own narrow purposes and has since become a valuable tool for much of our own work. We hope you will find it useful as well.

-Cameron Bracken and Charlie Sharpsteen

Development of tikzDevice is underway

Development of the R package tikzDevice has been underway for about a month now. This package allows for the output of R graphics as TikZ commands.

Charlie Sharpsteen and I have gotten it into an alpha stage. There is no real documentation but there is plenty of comments in the code. We have a R-forge project where binary packages can be downloaded. The project is also tracked by Github here or at my fork.

As of now the device handles most of the graphics parameters. There are still some issues with text placement and UTF8 string support is currently not implemented.

Comments, suggestions are welcome.