Generate LaTeX sparklines in R
The sparktex package, available on CRAN, provides functionality to generate LaTeX sparklines, a high-density graphical display generally attributed to information designer Edward Tufte. The package converts R data to LaTeX syntax for use with the LaTeX sparklines package.
The package can produce both sparklines and "sparkspikes" (sparkline-like barplots) that can be placed directly as in-line text or in table and figure environments. The display of these plots is highly customizable and the package documentation includes numerous examples.
Note: Due to dependency on the sparklines LaTeX package, sparktex can only produce output for PDF output.