latex: latex

View source: R/latex.R

latexR Documentation

latex

Description

The function returns the LaTeX code to create a tikz figure representing the Hasse diagram drawn from a set of profiles (prof), an incidence matrix (Z) or a cover matrix (C). The code can be copied and pasted into a latex file. The latex source requires the tikz package,

Usage

latex(y, ...)
## S3 method for class 'wprof'
latex(y, label = "", caption = "", scale = c(1, 1), ...)
## S3 method for class 'incidence'
latex(y, label = "", caption = "", scale = c(1, 1), ...)
## S3 method for class 'cover'
latex(y, label = "", caption = "", scale = c(1, 1), ...)

Arguments

y

an object of S3 class wprof, an object of S3 class incidence or an object of S3 class cover.

label

the label of the LaTeX figure.

caption

the caption of the LaTeX figure.

scale

a vector of two elements to control the scale of the X-axis and the scale of the Y-axis in the LaTeX output.

...

any of above.

Examples

prof <- var2prof(varlen = c(2, 3))
latex(prof, label="fg:hasse", caption="Hasse diagram", scale = c(2, 2))

parsec documentation built on Aug. 19, 2023, 5:07 p.m.