latex: latex

Description Usage Arguments Examples

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 tex source requires the tikz package,

Usage

1
2
3
4
5
6
7
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

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


Search within the parsec package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.