ncm | R Documentation |
Sloan Neutral Model
Plot ncm_res
ncm(otutab, model = "nls")
## S3 method for class 'ncm_res'
plot(
x,
mycols = c(Above = "#069870", Below = "#e29e02", In = "#1e353a"),
text_position = NULL,
...
)
otutab |
an otutab data.frame, samples are columns, taxs are rows. |
model |
fit method, one of "nls","mle" |
x |
a ncm_res object |
mycols |
mycols |
text_position |
text_position |
... |
add |
ncm_res
ggplot
Sloan, W. TRUE. et al. (2006) Quantifying the roles of immigration and chance in shaping prokaryote community structure. Environmental Microbiology 8, 732–740.
if (requireNamespace("Hmisc") && requireNamespace("minpack.lm")) {
data(otutab, package = "pcutils")
ncm(otutab) -> ncm_res
plot(ncm_res)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.