plot_sharedness: Barplot showing the sharedness per factor

View source: R/mefisto.R

plot_sharednessR 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


bioFAM/MOFA2 documentation built on June 12, 2024, 3:57 p.m.