Learn R Programming

latex2exp (version 0.9.6)

plot.expression: 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 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

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

Run the code above in your browser using DataLab