ispls.plot: Plot the results of ispls

View source: R/ispls.plot.R

ispls.plotR Documentation

Plot the results of ispls

Description

Plot the convergence path graph of the first direction vector w in the integrative sparse partial least squares model or show the regression coefficients.

Usage

ispls.plot(x, type)

Arguments

x

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

type

character, "path", "loading" or "heatmap" type, if "path", plot the the convergence path graph of vector w in the integrative sparse partial least squares model, if "loading", plot the the first direction vectors, if "heatmap", show the heatmap of regression coefficients among different datasets.

Details

See details in ispls.

Value

show the convergence path graph of the first direction vector w or the regression coefficients.

Examples

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

res_homo_m <- ispls(x = x, y = y, L = L, mu1 = 0.05, mu2 = 0.25,
                    eps = 5e-2, trace = FALSE, draw = FALSE)
ispls.plot(x = res_homo_m, type = "path")
ispls.plot(x = res_homo_m, type = "loading")
ispls.plot(x = res_homo_m, type = "heatmap")

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

Related to ispls.plot in iSFun...