Learn R Programming

MOFA (version 1.3.1)

plotDataOverview: Plot overview of the input data

Description

Function to do a tile plot showing the dimensionality and the missing value structure of the multi-omics data.

Usage

plotDataOverview(object, colors = NULL)

Arguments

object

a MOFAmodel object.

colors

a character vector specifying the colors per view. NULL (default) uses an internal palette.

Value

a tile plot of the training data

Details

This function is helpful to get an overview of the dimensionality and the missing value structure of the training data. It shows the number of samples, the number of views, the number of features, and the structure of missing values. It is particularly useful to visualise incomplete data sets, where some samples are missing subsets of assays.

Examples

Run this code
# NOT RUN {
# Example on the CLL data
filepath <- system.file("extdata", "CLL_model.hdf5", package = "MOFAdata")
MOFA_CLL <- loadModel(filepath)
plotDataOverview(MOFA_CLL)

# Example on the scMT data
filepath <- system.file("extdata", "scMT_model.hdf5", package = "MOFAdata")
MOFA_scMT <- loadModel(filepath)
# using customized colors
plotDataOverview(MOFA_scMT, colors= c("red", "red", "red", "blue"))
# }

Run the code above in your browser using DataLab