Description Usage Arguments Details Value Note Author(s) See Also Examples
Compute principal coordinates of a biom
object (columnwise), and plot selected coordinates.
1 2 3 |
x |
an object ( |
method |
name of distance or dissimilarity measure ( |
dim |
which principal coordinates to plot ( |
... |
arguments to |
map |
assignment of |
rows |
subselection of rows ( |
columns |
subselection of columns ( |
rerender |
previous computation to reuse in this call ( |
Complete technical documentation is forthcoming. For the current preliminary release, please refer to the examples provided.
Complete technical documentation is forthcoming. For the current preliminary release, please refer to the examples provided.
The function princomp()
is declared S3 generic in the base package stats
.
The method documented here does not apply any existing methods, however,
but rather relies on entirely different libraries for computation and graphical rendering.
See references below.
Daniel T. Braithwaite and Kevin P. Keegan
ecodist::pco
,
scatterplot3d::scatterplot3d
,
graphics::points
,
graphics::text
,
distx
,
BIOM.utils::biom
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #### quick two or three dimensional plots with choice of dissimilarity measure
princomp (xx1)
princomp (xx1, dim=2:3, method="bray-curtis")
#### graphical tweaks incorporating metadata
columns (xx1, "host_common_name|samp_store_temp")
princomp (xx1, dim=1:2, map=c(col="host_common_name", pch="samp_store_temp"),
col=c(Mouse="brown", cow="red", "striped bass"="blue"),
pch=c("-80"="+","NA"="*"), cex=2, label.pos=c(4,4,2,2,2,2,4), label.font=3)
#### transformed data, labeling from metadata, and modified perspective
columns (xx2, "material")
princomp (transform (xx2, t_Log), map=c(col="material"), labels="$$project.id",
angle=50, mar=c(1,1,0,0))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.