Skip to contents

Plots a heatmap of total log-likelihoods for (mu, rho) combinations and highlights the selected model.

Usage

PlotModel(data, prefix, out_dir, max_L_mu, max_L_rho)

Arguments

data

Data frame or tibble. Must include columns rho, mu, and total_log_likelihood_before_refine.

prefix

Character. Output file prefix.

out_dir

Character. Output directory for saving the plot.

max_L_mu

Numeric. The selected value of mutation multiplicity (mu) to highlight.

max_L_rho

Numeric. The selected value of tumor purity (rho) to highlight.

Value

Invisibly returns the ggplot object (or FALSE if plotting failed).

Examples

# PlotModel(data, opt, max_L_mu = 1, max_L_rho = 0.7)