Learn R Programming

iSFun (version 1.1.0)

ispca.plot: 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.

Value

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

Details

See details in ispca.

Examples

Run this code
# NOT RUN {
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")
# }

Run the code above in your browser using DataLab