plot_smoothness | R Documentation |
Barplot indicating a smoothness score (between 0 (non-smooth) and 1 (smooth)) per factor
plot_smoothness(object, factors = "all", color = "cadetblue")
object |
a trained |
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 |
The smoothness score is given by the scale parameter for the underlying Gaussian process of each factor.
Returns a ggplot2
object
# Using an existing trained model
file <- system.file("extdata", "MEFISTO_model.hdf5", package = "MOFA2")
model <- load_model(file)
smoothness_bars <- plot_smoothness(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.