xdvir-package: xdvir: Render 'LaTeX' in Plots

xdvir-packageR Documentation

xdvir: Render 'LaTeX' in Plots

Description

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.

Package options

The default 'TeX' typesetting engine is taken from getOption("xdvir.engine") (currently one of "luatex" or "xetex").

Whether to use a DVI cache is taken from getOption("xdvir.useDVIcache"). This is TRUE by default, but setting it to FALSE will ensure that typesetting will always occur (even if the 'LaTeX' fragment has been typeset before).

Whether to substitute very thin 'TeX' rules (lines) with line segments (rather than rectangles) is taken from getOption("xdvir.substituteRule"). This is NULL by default, which is taken as TRUE (i.e., DO substitute), but can be set to FALSE to force all rules to be drawn as rectangles. q

Author(s)

Maintainer: Paul Murrell paul@stat.auckland.ac.nz (ORCID)

See Also

https://github.com/pmur002/xdvir


xdvir documentation built on Aug. 8, 2025, 7:12 p.m.