latex {parsec} | R 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 |
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))
[Package parsec version 1.2.7 Index]