Description Usage Arguments Value References See Also Examples
View source: R/potential_analysis.R
Analysis of multimodality based on bootstrapped potential analysis of Livina et al. (2010) as described in Lahti et al. (2014).
1 2 3 4 5 6 7 | potential_analysis(
x,
peak.threshold = 0,
bw.adjust = 1,
bs.iter = 100,
min.density = 1
)
|
x |
Input data vector |
peak.threshold |
Mode detection threshold |
bw.adjust |
Bandwidth adjustment |
bs.iter |
Bootstrap iterations |
min.density |
minimum accepted density for a maximum; as a multiple of kernel height |
List with following elements:
modesNumber of modes for the input data vector (the most frequent number of modes from bootstrap)
minimaAverage of potential minima across the bootstrap samples (for the most frequent number of modes)
maximaAverage of potential maxima across the bootstrap samples (for the most frequent number of modes)
unimodality.supportFraction of bootstrap samples exhibiting unimodality
bwsBandwidths
Livina et al. (2010). Potential analysis reveals changing number of climate states during the last 60 kyr. Climate of the Past, 6, 77-82.
Lahti et al. (2014). Tipping elements of the human intestinal ecosystem. Nature Communications 5:4344.
plot_potential
1 2 3 4 5 6 7 8 9 10 | # Example data; see help(peerj32) for details
data(peerj32)
# Log10 abundance of Dialister
x <- abundances(transform(peerj32$phyloseq, "clr"))['Dialister',]
# Bootstrapped potential analysis
# In practice, use more bootstrap iterations
# res <- potential_analysis(x, peak.threshold=0, bw.adjust=1,
# bs.iter=9, min.density=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.