Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/BioGeoBEARS_generics_v1.R
This function prints a table to PDF via
pdfit
, which calls
xtable
and the LaTeX
pdflatex
function. It will only work if you have
command-line LaTeX installed.
1 2 3 |
table_vals |
A table, hopefully produced by
|
pdffn |
The filename for the output PDF (and the prefix for the intermediate files). |
size |
Font size, overriding
|
tmpdir |
The location for the temporary files. |
openPDF |
If |
caption |
A caption, if desired. |
This function was inspired by http://tex.stackexchange.com/questions/15013/generate-a-pdf-containing-r-output-inside-latex-table.
pdffn
The filename of the PDF file.
Go BEARS!
Nicholas J. Matzke matzke@berkeley.edu
http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster
Matzke_2012_IBS
1 2 3 4 5 6 7 8 9 10 11 12 13 | test=1
# Setup data
## Not run:
data = c(2.768443, 1.869964, 5.303702, 4.733483, 2.123816,
18.551051, 5.483625, 3.590745, 18.772389)
result = matrix(data, nrow=3, byrow=TRUE)
result = as.data.frame(result)
names(result) = c("CV", "LCB", "UCB")
rownames(result) = c("within", "between", "total")
result
pdftable(table_vals=result)#'
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.