View source: R/networks_plot.R
networks_plot | R Documentation |
Constructs and plots co-occurrence networks based on specific occurrence frequency (pre_threshold), permutation number (permutation), fdr threshold (fdr_threshold), association threshold (cor_threshold) with propr, sparcc and cclasso.
networks_plot( otu, taxa, sample, pre_threshold, fdr_threshold, cor_threshold, permutation, propr, sparcc, cclasso, spieceasi, propr_col, sparcc_col, cclasso_col, spieceasi_col )
otu |
a community count data matrix with samples in rows and OTUs/taxa in column, |
taxa |
a taxa information matrix. The rownames must match the OTU names (taxa_names) of the otu, |
sample |
a sample information data.frame. The rownames must match the sample names in the otu, |
pre_threshold |
occurrence frequency, |
fdr_threshold |
fdr threshold, |
cor_threshold |
association threshold, |
permutation |
permutation number of the association methods, |
propr |
a logical value indicating whether to run propr, |
sparcc |
a logical value indicating whether to run sparcc, |
cclasso |
a logical value indicating whether to run cclasso, |
spieceasi |
a logical value indicating whether to run spieceasi, |
propr_col |
the color of propr network, |
sparcc_col |
the color of sparcc network, |
cclasso_col |
the color of cclasso network, |
spieceasi_col |
the color of spieceasi network, |
Constructs and plots networks based on specific occurrence frequency (pre_threshold), permutation number (permutation), fdr threshold (fdr_threshold), association threshold (cor_threshold) with propr, sparcc and cclasso.
Co-occurrence network plots showing the relationship between otu.
networks_plot(otu, taxa, sample, pre_threshold=0.5, fdr_threshold=0.1, cor_threshold=0.6, permutation=100, propr=TRUE, sparcc=TRUE, cclasso=TRUE, spieceasi=TRUE, propr_col='darkcyan', sparcc_col='firebrick3', cclasso_col='goldenrod3', spieceasi_col = 'dodgerblue3')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.