plotHeatmap | R Documentation |
A heat map to visually display the joint and invidual components in a fitted model.
plotHeatmap(result, ...) ## S3 method for class 'sJIVE' plotHeatmap(result, order_by = -1, ylab = "Y", xlab = NULL, ycex = 1, ...) ## S3 method for class 'JIVEpred' plotHeatmap(result, order_by = -1, ylab = "Y", xlab = NULL, ycex = 1, ...) ## S3 method for class 'sesJIVE' plotHeatmap(result, order_by = -1, ylab = "Y", xlab = NULL, ycex = 1, ...)
result |
An object of class "sJIVE", "JIVEpred", "sesJIVE". |
... |
further arguments passed to or from other methods. |
order_by |
A value that specifies how to order the rows and columns of the heatmap. #If order_by=-1, orderings are determined by the outcome. If order_by=0, orderings are determined by joint structure. Otherwise, order_by gives the number of the individual structure dataset to determine the ordering. In all cases orderings are determined by complete-linkage hierarchical clustering of Euclidean distances. |
ylab |
A label for the outcome dataset. |
xlab |
A vector with labels for each X dataset. |
ycex |
A scalar to change the font size of the labels. |
This function takes a fitted sJIVE, sesJIVE, or JIVE.pred model and plots the results using heatplots. Ensure your plotting window is sufficiently large prior to running this function to get the best results visually.
A heat map.
plotHeatmap(sJIVE)
:
plotHeatmap(JIVEpred)
:
plotHeatmap(sesJIVE)
:
data(SimData.norm) fit <- sJIVE(X=SimData.norm$X,Y=SimData.norm$Y, rankJ=1,rankA=c(1,1),eta=0.5) plotHeatmap(fit, ylab="outcome", xlab=c("Metabolomic", "Proteomic"), ycex=0.9) data(SimData.norm) fit <- JIVE.pred(X=SimData.norm$X,Y=SimData.norm$Y, rankJ=1,rankA=c(1,1)) plotHeatmap(fit, ylab="outcome", xlab=c("Metabolomic", "Proteomic"), ycex=0.9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.