plot_energy_decomposition.Rd
Creates line plots showing the evolution of similarity, domain, and total energy across optimization iterations, for each modality. Energies are rescaled to [0,1] within each type for comparability.
plot_energy_decomposition(simlr_result, modality, show_weights = FALSE)
A list returned by simlr()
, containing
energyPath
, sim_energy
, domain_energy
,
and total_energy
.
Character string giving the name of the modality to plot
(must match names in energyPath$modality
).
Logical, if TRUE also show weighted energies.
A ggplot2
object.
if (FALSE) { # \dontrun{
res <- simlr(...)
plot_energy_decomposition(res, modality = "RNA")
} # }