plot_sample_reconstruction_error {musicatk} | R Documentation

## Plot reconstruction error for a sample

### Description

Displays the observed distribution of counts for each mutation type, the distribution of reconstructed counts for each mutation type using the inferred mutational signatures, and the difference between the two distributions.

### Usage

    plot_sample_reconstruction_error(result, sample, plotly = FALSE)

### Arguments

`result` | A `musica_result` object generated by a mutational discovery or prediction tool.
`sample` | Name of the sample within the `musica_result` object.
`plotly` | If `TRUE`, the the plot will be made interactive using `plotly`. Default `FALSE`.

### Value

Generates a ggplot or plotly object

### Examples

    data(res)
    plot_sample_reconstruction_error(res, "TCGA-ER-A197-06A-32D-A197-08")

[Package musicatk version 1.0.0 Index]