plot_landscape {microbiome} | R Documentation |
Plot abundance landscape ie. sample density in 2D projection landscape
plot_landscape(x, method = "NMDS", distance = "bray", col = NULL, main = NULL, x.ticks = 10, rounding = 0, add.points = TRUE, adjust = 1, size = 1, legend = FALSE)
x |
|
method |
Ordination method, see phyloseq::plot_ordination |
distance |
Ordination distance, see phyloseq::plot_ordination |
col |
Variable name to highlight samples (points) with colors |
main |
title text |
x.ticks |
Number of ticks on the X axis |
rounding |
Rounding for X axis tick values |
add.points |
Plot the data points as well |
adjust |
Kernel width adjustment |
size |
point size |
legend |
plot legend TRUE/FALSE |
For consistent results, set random seet (set.seed) before function call
A ggplot
plot object.
data(dietswap) p <- plot_landscape(abundances(transform(dietswap, "log10"))[, 1:2])