plot_exposure_posteriors_bleed: Plot the signature exposure posterior distribution along with...

Description Usage Arguments Value

View source: R/plot_exposure_posteriors_bleed.R

Description

Plot the signature exposure posterior distribution along with a visualization of signature bleed interactions.

Usage

1
2
3
4
5
6
7
8
9
plot_exposure_posteriors_bleed(
  exposures_mcmc_output,
  view = "violin",
  min_bleed = 0.2,
  signature_trim = "Signature",
  legend = TRUE,
  plot_heights = c(1, 1),
  units = "mutations"
)

Arguments

exposures_mcmc_output

Output from get_exposures.

view

Can be either "violin" or "boxplot" (default: "violin")

min_bleed

Bleed threshold, between 0 and 1. Default: 0.2.

signature_trim

Text to be trimmed off of the x-axis signature labels.

legend

Boolean - whether or not to include the legend.

plot_heights

Vector of 2 numbers denoting relative heights of exposure plot and bleed graph.

units

Units to present exposures in. Can be 'mutations', 'megabase', or 'fraction'.

Value

A cowplot merge of two ggplots showing the posterior distributions and signature bleed.


eyzhao/SignIT documentation built on Dec. 6, 2019, 11:45 a.m.