pca_plot | R Documentation |
Plot the PCA PCoa NMDS.
pca_plot( df, group, scale = FALSE, axis = c(1, 2), label = TRUE, legend = FALSE, point_size = 2, font = "sans", font_size = 10 ) pcoa_plot( dist, group, axis = c(1, 2), label = TRUE, legend = FALSE, point_size = 2, font = "sans", font_size = 10, ... ) nmds_plot( dist, group, label = TRUE, legend = FALSE, point_size = 2, font = "sans", font_size = 10, ... )
df |
df |
group |
group |
scale |
TRUE of FALSE. Scale species to unit variance (like correlations). |
axis |
select the axis to plot |
label |
TRUE of FALSE. Whether to draw a label |
legend |
TRUE of FALSE. Whether to draw a legend |
point_size |
point size |
font |
sans = Arial, serif = Times New Roman |
font_size |
font size |
dist |
dist. |
... |
Other params from ?ape::pcoa and ?vegan::metaMDS |
data(its) otu_t <- t(its) pca_plot(otu_t) bray_dist <- vegan::vegdist(otu_t) pcoa_plot(bray_dist) nmds_plot(bray_dist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.