Skip to content

Commit

Permalink
bcftools_stats_plot: fix title
Browse files Browse the repository at this point in the history
  • Loading branch information
pdiakumis committed May 7, 2024
1 parent 6f581f3 commit eae65f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/umccrise.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ bcftools_stats_plot <- function(x = NULL) {
tot <- nrow(d)
p <- d |>
ggplot2::ggplot(ggplot2::aes(x = .data$qual)) +
ggplot2::geom_histogram(ggplot2::aes(y = ggplot2::after_stat(stats::density)), binwidth = 4, fill = "lightblue") +
ggplot2::geom_histogram(ggplot2::aes(y = ggplot2::after_stat(.data$density)), binwidth = 4, fill = "lightblue") +
ggplot2::geom_density(alpha = 0.6) +
ggplot2::geom_vline(xintercept = med, colour = "blue", linetype = "dashed") +
ggplot2::scale_x_continuous(n.breaks = 10) +
Expand All @@ -39,7 +39,7 @@ bcftools_stats_plot <- function(x = NULL) {
label = paste0("Median: ", med),
) +
ggplot2::theme_bw() +
ggplot2::ggtitle(glue::glue("SNV quality score distribution (total SNVs: {tot})"))
ggplot2::ggtitle(glue::glue("Small variant quality score distribution (total variants: {tot})"))
p
}

Expand Down

0 comments on commit eae65f5

Please sign in to comment.