Skip to contents

Plots histograms for split fragments (SF), discordant fragments (DF), and the total fragments (SF+DF) across all BNDs. Observations where values are 0 (NA) are not shown.

Usage

plot_bnd_sf_df_tot_hist(
  d,
  title = "SF, DF and SF + DF histogram for BNDs",
  subtitle = "Values of 0 (NA) are not shown."
)

Arguments

d

A data.frame with SF_alt, DF_alt, and SF_DF_sum columns.

title

Main title of plot.

subtitle

Subtitle of plot.

Value

A ggplot2 plot object.

Examples

x <- system.file("extdata/sash/sv.prioritised.tsv", package = "gpgr")
d <- process_sv(x)$map
#> Warning: There was 1 warning in `dplyr::mutate()`.
#>  In argument: `SF_DF_sum = dplyr::case_when(...)`.
#> Caused by warning in `Ops.factor()`:
#> ! ‘+’ not meaningful for factors
#> Warning: There were 2 warnings in `dplyr::mutate()`.
#> The first warning was:
#>  In argument: `.group_key = ifelse(...)`.
#> Caused by warning in `pmin()`:
#> ! NAs introduced by coercion
#>  Run `dplyr::last_dplyr_warnings()` to see the 1 remaining warning.
#> Warning: There was 1 warning in `dplyr::arrange()`.
#>  In argument: `..2 = as.numeric(.data$ID)`.
#> Caused by warning:
#> ! NAs introduced by coercion
plot_bnd_sf_df_tot_hist(d, "a title")