Learn R Programming

pctax (version 0.1.3)

ncm: Sloan Neutral Model

Description

Sloan Neutral Model

Plot ncm_res

Usage

ncm(otutab, model = "nls")

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

Value

ncm_res

ggplot

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

pie_text_params

pie text parameters

...

add

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

Run this code
# \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