Sloan Neutral Model
Plot ncm_res
ncm(otutab, model = "nls")# S3 method for ncm_res
plot(
x,
mycols = c(Above = "#069870", Below = "#e29e02", In = "#1e353a"),
text_position = NULL,
...
)
ncm_res
ggplot
an otutab data.frame, samples are columns, taxs are rows.
fit method, one of "nls","mle"
a ncm_res object
mycols
text_position
add
Sloan, W. TRUE. et al. (2006) Quantifying the roles of immigration and chance in shaping prokaryote community structure. Environmental Microbiology 8, 732–740.
# \donttest{
if (requireNamespace("Hmisc") && requireNamespace("minpack.lm")) {
data(otutab, package = "pcutils")
ncm(otutab) -> ncm_res
plot(ncm_res)
}
# }
Run the code above in your browser using DataLab