Learn R Programming

gMCP (version 0.3-2)

graph2latex: Graph2LaTeX

Description

Creates LaTeX code that represents the given graph.

Usage

graph2latex(graph, package="TikZ", scale=1, pvalues,
	fontsize=c("tiny","scriptsize", "footnotesize", "small",
		"normalsize", "large", "Large", "LARGE", "huge", "Huge"))

Arguments

graph
A graph of class graphMCP.
package
A character string specifying the LaTeX package that should be used. Up to now only TikZ is available.
scale
A numeric scalar specifying a possible scaling of the graph. Note that this does not effect the fontsize of the graph. (Coordinates are interpreted in big points - 72 bp = 1 inch).
pvalues
If the optional numeric argument pvalues is given, nodes that can be rejected, will be marked.
fontsize
An optional character vector specifying the fontsize for the graph, must be one of "tiny", "scriptsize", "footnotesize", "small", "normalsize", "large", "Large"

Value

  • A character string that contains LaTeX code representing the given graph.

Details

For details see the given references.

References

The TikZ and PGF Packages Manual for version 2.00, Till Tantau, http://www.ctan.org/tex-archive/graphics/pgf/base/doc/generic/pgf/pgfmanual.pdf

See Also

graphMCP

Examples

Run this code
g <- createBonferroniHolmGraph(5)

graph2latex(g)

Run the code above in your browser using DataLab