Description Usage Arguments Methods Examples
xtable
methods for several a4 objects, such as annotationTable
objects,
topTable
objects etc.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | ## S4 method for signature
## 'annotationTable,missing,missing,missing,missing,missing'
xtable(x, caption, label, align, digits, display)
## S4 method for signature 'annotationTable,ANY,ANY,ANY,ANY,ANY'
xtable(x, caption, label, align, digits, display)
## S4 method for signature 'annotationTable,ANY,ANY,ANY,numeric,ANY'
xtable(x, caption, label, align, digits, display)
## S3 method for class 'topTableGlmnet'
xtable(
x,
caption = NULL,
label = NULL,
align = NULL,
digits = NULL,
display = NULL,
...
)
## S3 method for class 'topTableLognet'
xtable(
x,
caption = NULL,
label = NULL,
align = NULL,
digits = NULL,
display = NULL,
...
)
## S3 method for class 'topTableElnet'
xtable(
x,
caption = NULL,
label = NULL,
align = NULL,
digits = NULL,
display = NULL,
...
)
## S3 method for class 'pamClassConfusionTable'
xtable(
x,
caption = NULL,
label = NULL,
align = NULL,
digits = NULL,
display = NULL,
...
)
## S3 method for class 'topTablePam'
xtable(x, ...)
## S3 method for class 'topTableRfClass'
xtable(
x,
caption = NULL,
label = NULL,
align = NULL,
digits = NULL,
display = NULL,
...
)
|
x |
annotationTable object |
caption |
Character vector of length 1 or 2 containing the
table's caption or title. If length is 2, the second item is the
"short caption" used when LaTeX generates a "List of Tables". Set to
|
label |
Character vector of length 1 containing the LaTeX label
or HTML anchor. Set to |
align |
Character vector of length equal to the number of columns
of the resulting table, indicating the alignment of the corresponding
columns. Also, |
digits |
Numeric vector of length equal to one (in which case it will be
replicated as necessary) or to the number of columns of the
resulting table or matrix of the same size as the resulting
table, indicating the number of digits to display in the
corresponding columns. Since the row names are printed in the first
column, the length of the vector |
display |
Character vector of length equal to the number of columns of the
resulting table, indicating the format for the corresponding columns.
Since the row names are printed in the first column, the length of
|
... |
Additional arguments. (Currently ignored.) |
generates a LaTeX representation for the given annotationTable
generates a LaTeX representation for the given annotationTable
generates a LaTeX representation for the given annotationTable
1 2 3 4 5 | ## some dummy data
dData <- data.frame(someSymbol = LETTERS[1:5], accessionNumber = c("X83928", "V00540", "U21090", "L38487", "M34057"))
at <- annotationTable(displayData = dData, displayCols = list(accessionNumber = "EntrezId"))
xat <- xtable(at)
print(xat, include.rownames = FALSE)
|
Loading required package: annaffy
Loading required package: Biobase
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, basename, cbind, colMeans, colSums, colnames,
dirname, do.call, duplicated, eval, evalq, get, grep, grepl,
intersect, is.unsorted, lapply, lengths, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, rank, rbind,
rowMeans, rowSums, rownames, sapply, setdiff, sort, table, tapply,
union, unique, unsplit, which, which.max, which.min
Welcome to Bioconductor
Vignettes contain introductory material; view with
'browseVignettes()'. To cite Bioconductor, see
'citation("Biobase")', and for packages 'citation("pkgname")'.
Loading required package: GO.db
Loading required package: AnnotationDbi
Loading required package: stats4
Loading required package: IRanges
Loading required package: S4Vectors
Attaching package: 'S4Vectors'
The following object is masked from 'package:base':
expand.grid
Loading required package: KEGG.db
KEGG.db contains mappings based on older data because the original
resource was removed from the the public domain before the most
recent update was produced. This package should now be considered
deprecated and future versions of Bioconductor may not have it
available. Users who want more current data are encouraged to look
at the KEGGREST or reactome.db packages
% latex table generated in R 3.4.4 by xtable 1.8-4 package
% Tue Nov 10 09:17:49 2020
\begin{table}[ht]
\centering
\begin{tabular}{ll}
\hline
someSymbol & accessionNumber \\
\hline
A & \href{http://www.ncbi.nlm.nih.gov/gene/X83928}{X83928} \\
B & \href{http://www.ncbi.nlm.nih.gov/gene/V00540}{V00540} \\
C & \href{http://www.ncbi.nlm.nih.gov/gene/U21090}{U21090} \\
D & \href{http://www.ncbi.nlm.nih.gov/gene/L38487}{L38487} \\
E & \href{http://www.ncbi.nlm.nih.gov/gene/M34057}{M34057} \\
\hline
\end{tabular}
\end{table}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.