From 948cb337dba52d49ed9bc75b8fa88e9041854a9a Mon Sep 17 00:00:00 2001 From: Elias Projahn Date: Fri, 27 Oct 2023 14:40:26 +0200 Subject: [PATCH] plots: Use mean gene position for positions plot --- R/plots.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/plots.R b/R/plots.R index b566ab1..bb38285 100644 --- a/R/plots.R +++ b/R/plots.R @@ -583,7 +583,7 @@ plot_scores_by_position <- function(ranking, if (is.null(chromosome_name)) { data[, x := distance] } else { - data[, x := start_position] + data[, x := (start_position + end_position) / 2] } fig <- plotly::plot_ly() |>