Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A R package for producing graphics output as PGF/TikZ code for use in TeX documents.
R C Haskell Shell

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
R
inst
man
src
.Rbuildignore
.gitattributes
CHANGELOG.md
DESCRIPTION
NAMESPACE
README.md
TODO
updateVersion.sh

README.md

tikzDevice


Description

The tikzDevice package new graphics device for R which enables direct output of graphics in a LaTeX-friendly way. Plotting commands issued by R functions are transformed into LaTeX code blocks. These blocks are interpreted with the help of TikZ-- a graphics library for TeX and friends written by Till Tantau.

The tikzDevice supports three main modes of output:

  • Figure chunks: placed in .tex files and suitable for inclusion in LaTeX documents via the \input{} command.

  • Stand alone figures: Complete LaTeX documents containing figure code that can be compiled into stand-alone images. Pages are cropped to the size of the figure using the LaTeX preview package.

  • Console output: TikZ code is returned directly to the R console as a character vector for further manipulation.

Beta Notice

The tikzDevice is currently flagged as a beta work. The package is reasonably stable and has been used by the authors to produce graphics for academic publications for over a year. The reason for beta status is that there are several open design issues- two of which are:

  • Providing support for UTF8 text.

  • Supporting TeX variants other than LaTeX.

Resolving these issues may require changes to the tikzDevice that break backwards compatibility with previous versions. The beta flag is a reminder that such changes may occur- although we will strive to avoid them if possible.

The beta flag will be removed upon release of version 1.0. At this time the tikzDevice will switch to semantic versioning and changes that break backwards compatibility will happen rarely and will incur a major release.

Obtaining the Package

Stable versions of the tikzDevice may be downloaded from CRAN:

install.packages( 'tikzDevice' )

Development versions may be obtained from R-Forge:

install.packages( 'tikzDevice', 
  repos='http://r-forge.r-project.net' )

Reporting Bugs and Getting Help

The tikzDevice has 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 @at@ lists.r-forge.r-project.org

Primary development takes place on GitHub. Bugs and feature requests may be made by opening issues at the primary repository:

http://github.com/Sharpie/RTikZDevice/issues

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

Latest Changes

See the CHANGELOG for changes that occurred in previous releases


Version: 0.5.2


Contributors

The following people contributed to this release of the tikzDevice:

  • mlt for reporting problems with the Sanitize function that led to the discovery of two situations where buffer overflows were occurring.

Bug Fixes

  • Fixed buffer overflows and memory leaks related to string pointers in tikzDevice.c.

  • Fixed compilation of the tikzDevice vignette under R 2.12.0.

  • Reduced the verbosity of the package startup message.

Something went wrong with that request. Please try again.