plotVarExplained | R Documentation |
Display a barplot given JIVE.pred, sJIVE, or sesJIVE model to show the amount of variance explained by the model results
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"), ...)
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. |
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.
A set of barplots
plotVarExplained(JIVEpred)
:
plotVarExplained(sJIVE)
:
plotVarExplained(sesJIVE)
:
## Not run: #Let fit be a fitted sJIVE, JIVE.pred, or sesJIVE model plotVarExplained(fit, col=c("grey20", "grey43", "grey65")) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.