Package: tikzDevice 0.12.6

Ralf Stubner

tikzDevice: R Graphics Output in LaTeX Format

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 LaTeX document, 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.

Authors:Charlie Sharpsteen [aut], Cameron Bracken [aut], Kirill Müller [ctb], Yihui Xie [ctb], Ralf Stubner [cre], Nico Bellack [ctb]

tikzDevice.pdf |tikzDevice.html
tikzDevice/json (API)

# Install tikzDevice in R:
install.packages('tikzDevice', repos = c('', ''))

Peer review:

Bug tracker:


18 exports 131 stars 4.99 score 3 dependencies 3 dependents 5.5k downloads

Last updated 9 days agofrom:c7a370e5802450a5cf1bfc0b96eb338af7bedf6a



The tikzDevice Package

Rendered fromtikzDevice.Rnwusingknitr::knitron Jun 13 2024.

Last update: 2023-08-18
Started: 2013-11-01

Readme and manuals

Help Manual

Help pageTopics
Support for native LaTeX output of R graphicstikzDevice-package tikzDevice
Check If a String Contains Multibyte UTF-8 charactersanyMultibyteUTF8Characters
Obtain Font Metrics from LaTeXgetLatexCharMetrics getLatexStrWidth
Convert grid coordinates to device coordinatesgridToDevice
Replace LaTeX Special Characters in a StringsanitizeTexString
Reset tikzDevice options to default values.setTikzDefaults
TikZ Graphics Devicetikz
Add Custom TikZ Code to an Active Devicegrid.tikzAnnotate grid.tikzCoord grid.tikzNode tikzAnnotate tikzAnnotateGrob tikzCoord tikzCoordGrob tikzNode tikzNodeGrob
Print paths to TeX compilers.tikzCompilerInfo
Test invocation of a LaTeX engine.tikzTest