Learn R Programming

pcadapt (version 2.2)

neutralDistribution: Neutral Distribution Estimation

Description

neutralDistribution plots the histogram of the loadings associated with the K-th principal component, as well as the normal distribution with the estimated standard deviation.

Usage

neutralDistribution(x, K, n_breaks = 100)

Arguments

K
an integer indicating which principal component the histogram will be associated with.
n_breaks
an integer indicating the number of bars the histogram will be composed of. Default value set to 100.
data
a numeric matrix which provides the data for the principal components analysis (PCA).
sigma
a numeric vector containing the estimated standard deviations for each principal component.

Examples

Run this code
## see ?pcadapt for examples

Run the code above in your browser using DataLab