Reverse axes in distribution plots

This commit is contained in:
Elias Projahn 2022-07-13 18:32:26 +02:00
parent aed13425ed
commit 19b395a564

View file

@ -22,7 +22,6 @@ overview_plot <- function(ranked_data,
plotly::layout(
xaxis = list(
title = "Percentile",
autorange = "reversed",
tickformat = ".1%"
),
yaxis = list(title = "Score"),
@ -133,7 +132,10 @@ scores_plot <- function(ranked_data, highlighted_genes = NULL, ranks = 1000) {
showlegend = FALSE
) |>
plotly::layout(
xaxis = list(title = ranks_label),
xaxis = list(
title = ranks_label,
autorange = "reversed"
),
yaxis = list(title = "Score"),
clickmode = "event+select",
dragmode = "select"