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$"))

stefano-meschiari/latex2exp documentation built on Jan. 27, 2023, 3:43 a.m.