plots: Use mean gene position for positions plot

This commit is contained in:
Elias Projahn 2023-10-27 14:40:26 +02:00
parent c60f6a8aff
commit 948cb337db

View file

@ -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() |>