plot_sharedness {MOFA2} | R Documentation

## Barplot showing the sharedness per factor

### Description

Barplot indicating a sharedness score (between 0 (non-shared) and 1 (shared)) per factor

### Usage

    plot_sharedness(object, factors = "all", color = "#B8CF87")

### 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 shared part of the bar

### Details

The sharedness score is calculated as the distance of the learnt group correlation matrix to the identity matrix in terms of the mean absolute distance on the off-diagonal elements.

### Value

Returns a `ggplot2` object

[Package MOFA2 version 1.2.2 Index]