plot.expression: Previews a LaTeX equation

View source: R/plots.R

plot.expressionR Documentation

Previews a LaTeX equation

Description

Plots the result of a call to [TeX] on the current graphical device. This is useful to preview the output before placing it on a plot.

Usage

## S3 method for class 'expression'
plot(x, ..., main = NULL)

Arguments

x

A plotmath expression returned by TeX.

...

Parameters to be passed to the text function.

main

Title of the plot

Examples

plot(TeX("Example equation: $a \\geq b$"))

latex2exp documentation built on Jan. 9, 2026, 5:12 p.m.