plot.expression {latex2exp}R 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$"))

[Package latex2exp version 0.9.6 Index]