plot_sncm_fit: plots the fit of an OTU table to 'sncm'

Description Usage Arguments Value See Also Examples

View source: R/modeling_tools.R

Description

This funtion plots the output from fit_sncm

Usage

1
plot_sncm_fit(spp.out, fill = NULL, title = NULL)

Arguments

spp.out

the output from fit_sncm

fill

(optional) can either be set to fit_class to color by prediction (default), or by a taxonomic level available in rank_names

title

(optional) the title of the plot.

Value

This function returns a plot of the fit of the OTU table to sncm

See Also

fit_sncm

Examples

1
2
3
4
spp <- otu_table(ps)@.Data
spp.out <- fit_sncm(spp, pool=NULL, taxon=data.frame(tax_table(ps)))
p <- plot_sncm_fit(spp.out)
p <- plot_sncm_fit(spp.out = spp.out, fill_var = "fit_class", title_var = "Fit to Neutral Model")

DanielSprockett/reltools documentation built on May 5, 2019, 12:27 p.m.