ispca.plot {iSFun} | R 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")
[Package iSFun version 1.1.0 Index]