latex2 | R Documentation |
A simple interface to write a file that can be typesetted with latex.
latex2(obj, file = "foo.tex", faithful = TRUE, abundance = 0,
taxa.width = 70, layer.width = 2, col.width = 2,
unit = "mm", paper = "a3paper", warn = FALSE, fontsize = "10pt")
latex2triplet(obj, stat.min = 0.3, p.max = 0.05, paper = c("a4paper", "a4paper", "a4paper"),
taxa.width = c(70,70,70), fontsize = c("10pt", "10pt", "10pt"),
file = c("faithful.tex","remaining.tex","monoptic.tex"),
path = tempdir(), suffix = NULL)
template2(paper = "a4paper", color = "lightgray", fontsize = "10pt")
obj |
|
file |
|
faithful |
|
abundance |
|
taxa.width |
|
layer.width |
|
col.width |
|
unit |
|
warn |
|
paper |
|
fontsize |
|
color |
|
path |
|
stat.min |
|
p.max |
|
suffix |
|
latex2
can be used in three flavors. Given an object of class
'synoptic'
latex2(obj, faithful = TRUE
generates a table of
faithful species only, whereas setting faithful = FALSE
will produce
a table of all remaining species not meeting the threshold of stat.min
.
With objects of class 'monoptic'
latex2
prints a series of
tables, where each partition is summarized independently.
latex2triplet
produces all three versions in a single step by
internal calls to synoptic
and monoptic
. Files are
named according to argument file
and can be expanded with argument
suffix
if the default file names are acceptable. In any case, the
function asks for an argument path
to which files are written.
Parameters paper
are applied according to the types of output indicated
by argument file
.
In case of template
a list of characters, other wise a file written
to disk.
Roland Kaiser
Latex
library(vegsoup)
# dummy example with simulated data
x <- synoptic(fidelity(VegsoupPartition(coenoflex(), k = 3)))
# generate LaTex file
latex2(x, file = tempfile()) # defasult is faithful = TRUE
latex2(x, file = tempfile(), faithful = FALSE)
x <- monoptic(fidelity(VegsoupPartition(coenoflex(), k = 3)))
# generate LaTex file
latex2(x, file = tempfile())
# all three modes at once
x <- fidelity(VegsoupPartition(coenoflex(), k = 3))
latex2triplet(x, path = tempdir())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.