Description Usage Arguments Details Value Examples
View source: R/posterior_analyses.R
Get other annotations (e.g. sample number) for hosts in data set
1 2 3 4 5 6 | get_other_labels(
centroids,
tax_level = "ASV",
annotation = "group",
MAP = FALSE
)
|
centroids |
data.frame of per-host centroids from posterior embedding |
tax_level |
taxonomic level at which to agglomerate data |
annotation |
label to assign (e.g. individual) |
MAP |
use MAP estimate model output instead of full posterior output |
Output is the centroids data.frame appended with the desired annotation. Available annotations are: group, matgroup, samplenumber, sampledensity, mom, dad, momrank, drought, largegroup, momdied, competingsib, earlyadversity, birthrate_all, birthrate_surviving, alphadiv, wetproportion
data.frame
1 2 | centroids <- readRDS(file.path("output","plots","genus","Sigma_ordination_centroids.rds"))
labelled_centoids <- get_other_labels(centroids, tax_level="ASV", annotation="group", MAP=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.