plot_interpolation_vs_covariate | R Documentation |
make a plot of interpolated covariates versus covariate
plot_interpolation_vs_covariate(
object,
covariate = 1,
factors = "all",
only_mean = TRUE,
show_observed = TRUE
)
object |
a trained |
covariate |
covariate to use for plotting |
factors |
character or numeric specifying the factor(s) to plot, default is "all" |
only_mean |
show only mean or include uncertainties? |
show_observed |
include observed factor values as dots on the plot |
to be filled
Returns a ggplot2
object
# Using an existing trained model
file <- system.file("extdata", "MEFISTO_model.hdf5", package = "MOFA2")
model <- load_model(file)
model <- interpolate_factors(model, new_values = seq(0,1.1,0.1))
plot_interpolation_vs_covariate(model, covariate = "time", factors = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.