ncm: Sloan Neutral Model

View source: R/eco_micro.R

ncmR Documentation

Sloan Neutral Model

Description

Sloan Neutral Model

Plot ncm_res

Usage

ncm(otutab, model = "nls")

## S3 method for class 'ncm_res'
plot(
  x,
  mycols = c(Above = "#069870", Below = "#e29e02", In = "#1e353a"),
  text_position = NULL,
  ...
)

Arguments

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

Value

ncm_res

ggplot

References

Sloan, W. TRUE. et al. (2006) Quantifying the roles of immigration and chance in shaping prokaryote community structure. Environmental Microbiology 8, 732–740.

Examples


if (requireNamespace("Hmisc") && requireNamespace("minpack.lm")) {
  data(otutab, package = "pcutils")
  ncm(otutab) -> ncm_res
  plot(ncm_res)
}


pctax documentation built on May 29, 2024, 10:03 a.m.