Build Status AppVeyor Build Status Coverage status CRAN_Status_Badge

The tikzDevice package provides a graphics output device for R that records plots in a LaTeX-friendly format. The device transforms plotting commands issued by R functions into LaTeX code blocks. When included in a paper typeset by LaTeX, these blocks are interpreted with the help of TikZ---a graphics package for TeX and friends written by Till Tantau.

Using the tikzDevice, the text of R plots can contain LaTeX commands such as mathematical formula. The device also allows arbitrary LaTeX code to be inserted into the output stream.

The tikzDevice supports three main modes of output:

Obtaining the Package

Stable versions of the tikzDevice may be installed from CRAN:

install.packages( 'tikzDevice' )

Development builds may be installed from RForge:

install.packages( 'tikzDevice', repos = '', type = 'source' )

Alternatively, install directly from GitHub:

devtools::install_github( 'daqana/tikzDevice' )

Bleeding-edge source code is available from GitHub, too:

git clone git://

After cloning, install via


Reporting Bugs and Getting Help

Primary development takes place on GitHub. The preferred way to communicate bugs and feature requests is to open an issue at the primary repository:

(Unfortunately, the original repository by Charlie Sharpsteen,, has not been updated for over a year, and the package was not even installable anymore with current versions of R. This was the reason to continue development in a fork.)

The tikzDevice has also a dedicated mailing list courtesy of R-Forge. The mailing list is the easiest way to get answers for questions related to usage:

tikzdevice-bugs @[email protected]

The mailing list may also be accessed through Google Groups:!forum/tikzdevice

Adventurous users are encouraged to fork the repository and contribute to the development of the package!

Latest Changes

See the NEWS file for latest changes

yihui/tikzDevice documentation built on Jan. 13, 2020, 12:45 p.m.