Learn R Programming

parsec (version 1.2.7)

latex: 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 wprof
latex(y, label = "", caption = "", scale = c(1, 1), ...)
# S3 method for incidence
latex(y, label = "", caption = "", scale = c(1, 1), ...)
# S3 method for 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

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

Run the code above in your browser using DataLab