Render 'LaTeX' in Plots

High-level functions to render 'LaTeX' fragments in plots, including as labels and data symbols in 'ggplot2' plots, plus low-level functions to author 'LaTeX' fragments (to produce 'LaTeX' documents), typeset 'LaTeX' documents (to produce 'DVI' files), read 'DVI' files (to produce "DVI" objects), and render "DVI" objects.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("xdvir")

0.2-0 by Paul Murrell, 8 months ago


https://stattech.wordpress.fos.auckland.ac.nz/2025/03/06/2025-01-latex-typesetting-in-r/


Browse source code at https://github.com/cran/xdvir


Authors: Paul Murrell [aut, cre] (ORCID:


Documentation:   PDF Manual  


GPL-3 license


Imports grDevices, grid, hexView, tinytex, rlang, systemfonts

Suggests gridBezier, knitr, rmarkdown, lattice, gridGraphics, gggrid, ggplot2, cli

System requirements: freetype2


Suggested by ggpmisc, rgl.


See at CRAN