plot_smoothness {MOFA2} | R Documentation

## Barplot showing the smoothness per factor

### Description

Barplot indicating a smoothness score (between 0 (non-smooth) and 1 (smooth)) per factor

### Usage

    plot_smoothness(object, factors = "all", color = "cadetblue")

### Arguments

`object` | a trained `MOFA` object using MEFISTO.
`factors` | character vector with the factors names, or numeric vector indicating the indices of the factors to use
`color` | for the smooth part of the bar

### Details

The smoothness score is given by the scale parameter for the underlying Gaussian process of each factor.

### Value

Returns a `ggplot2` object

### Examples

    # Using an existing trained model
    file <- system.file("extdata", "MEFISTO_model.hdf5", package = "MOFA2")
    model <- load_model(file)
    smoothness_bars <- plot_smoothness(model)

[Package MOFA2 version 1.4.0 Index]