View source: R/beta_div_test.R
plot_SCBD_pq | R Documentation |
A wrapper for the adespatial::beta.div()
function in the case of physeq
object.
plot_SCBD_pq(
physeq,
tax_level = "Taxa",
tax_col = "Order",
min_SCBD = 0.01,
...
)
physeq |
(required): a |
tax_level |
Taxonomic level to used in y axis |
tax_col |
Taxonomic level to colored points |
min_SCBD |
(default 0.01) the minimum SCBD value to plot the taxa |
... |
Other arguments passed on to |
This function is mainly a wrapper of the work of others.
Please make a reference to vegan::beta.div()
if you
use this function.
A ggplot2 object build with the package patchwork
Adrien Taudière
LCBD_pq, adespatial::beta.div()
data(data_fungi)
if (requireNamespace("adespatial")) {
plot_SCBD_pq(data_fungi) +
geom_text(aes(label = paste(Genus, Species)), hjust = 1, vjust = 2) +
xlim(c(0, NA))
}
if (requireNamespace("adespatial")) {
plot_SCBD_pq(data_fungi, tax_level = "Class", tax_col = "Phylum", min_SCBD = 0) +
geom_jitter()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.