TikzDevice tutorial I: install tikzDevice in R

How to install tikzDevice for plotting in R.

r
tikz
latex
ipa
Author
Affiliation

Rutgers University

Published

May 11, 2013

Overview

This is a short tutorial for getting tikzDevice running on R version 3.0. If you write in LaTeX and use R for statistics, this is a good way to get your plots/graphs/etc. into your .tex document. The advantages are:

  1. much higher quality and
  2. you can use IPA symbols

Download tiksDevice

tiksDevice is no longer officially supported by CRAN because the author was having trouble keeping it updated in a timely manner (check out this webpage if you want to read a little more it). Nonetheless, the tikzdevice package is very usable and still available for download. You can download the tar.gz file directly by clicking here.

Install tiksDevice

Installing a package that is no longer supported is by no means difficult, but not as simple as install.package('tikzDevice') (try it if you want to see why). Use the following code install the tar file (make sure to specify your file path to wherever you downloaded the file). This is what it looked like for me.

install.packages("/Users/USERNAME/Downloads/tikzDevice_0.6.2.tar", 
  repos = NULL, type = "source")

Install dependencies

In order for tikzDevice to work, you must also install the filehash package. This is much easier.

install.packages('filehash')

That’s it. Check out this tutorial to see how to set up a project.