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,
  ...
)

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

# \donttest{
if (requireNamespace("Hmisc") && requireNamespace("minpack.lm")) {
  data(otutab, package = "pcutils")
  ncm(otutab) -> ncm_res
  plot(ncm_res)
}
#> Loading required namespace: Hmisc
# }