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)

Arguments

simlr_result

A list returned by simlr(), containing energyPath, sim_energy, domain_energy, and total_energy.

modality

Character string giving the name of the modality to plot (must match names in energyPath$modality).

show_weights

Logical, if TRUE also show weighted energies.

Value

A ggplot2 object.

Examples

if (FALSE) { # \dontrun{
  res <- simlr(...)
  plot_energy_decomposition(res, modality = "RNA")
} # }