Learn R Programming

equatiomatic (version 0.0.0.9000)

preview: Preview LaTeX equations

Description

Preview LaTeX equations built with extract_eq.

Usage

preview(eq, ...)

Arguments

eq

LaTeX equation built with extract_eq

additional arguments passed to tex_preview

Examples

Run this code
# NOT RUN {
# Basic preview
mod1 <- lm(mpg ~ cyl + disp, mtcars)
preview(extract_eq(mod1))

# Pass arguments to tex_preview()
preview(extract_eq(mod1), density = 600)

# Use with magrittr pipes
mod1 %>%
  preview(density = 600)
# }

Run the code above in your browser using DataLab