ispca.plot: Plot the results of ispca

View source: R/ispca.plot.R

ispca.plotR Documentation

Plot the results of ispca

Description

Plot the convergence path graph or estimated value of the first eigenvector u in the integrative sparse principal component analysis method.

Usage

ispca.plot(x, type)

Arguments

x

list of "ispca", which is the result of command "ispca".

type

character, "path" or "loading" type, if "path", plot the the convergence path graph of the first eigenvector u in the integrative sparse principal component analysis method, if "loading", plot the first eigenvector.

Details

See details in ispca.

Value

the convergence path graph or the scatter diagrams of the first eigenvector u.

Examples

library(iSFun)
data("simData.pca")
x <- simData.pca$x
L <- length(x)

res_homo_m <- ispca(x = x, L = L, mu1 = 0.5, mu2 = 0.002, trace = FALSE, draw = FALSE)
ispca.plot(x = res_homo_m, type = "path")
ispca.plot(x = res_homo_m, type = "loading")

iSFun documentation built on March 18, 2022, 7:41 p.m.

Related to ispca.plot in iSFun...