plotVarExplained: Variance Graph of supervised JIVE output

View source: R/Visuals.R

plotVarExplainedR Documentation

Variance Graph of supervised JIVE output

Description

Display a barplot given JIVE.pred, sJIVE, or sesJIVE model to show the amount of variance explained by the model results

Usage

plotVarExplained(result, col, ...)

## S3 method for class 'JIVEpred'
plotVarExplained(result, col = c("grey20", "grey43", "grey65"), ...)

## S3 method for class 'sJIVE'
plotVarExplained(result, col = c("grey20", "grey43", "grey65"), ...)

## S3 method for class 'sesJIVE'
plotVarExplained(result, col = c("grey20", "grey43", "grey65"), ...)

Arguments

result

An object of class "sJIVE", "JIVEpred", "sesJIVE".

col

a vector containing the 3 colors that should be used for the barplot.

...

further arguments passed to or from other methods.

Details

A barplot for each X dataset and the outcome will be graphed. If y is not continuous (e.g. if it is binary), a barplot for y will not be plotted.

Value

A set of barplots

Methods (by class)

  • plotVarExplained(JIVEpred):

  • plotVarExplained(sJIVE):

  • plotVarExplained(sesJIVE):

Examples

## Not run: 
#Let fit be a fitted sJIVE, JIVE.pred, or sesJIVE model
plotVarExplained(fit, col=c("grey20", "grey43", "grey65"))

## End(Not run)

enorthrop/sup.r.jive documentation built on Nov. 18, 2022, 6:01 p.m.