From 19b395a564f5147053e707ba4fc5c312df223a94 Mon Sep 17 00:00:00 2001 From: Elias Projahn Date: Wed, 13 Jul 2022 18:32:26 +0200 Subject: [PATCH] Reverse axes in distribution plots --- R/plots.R | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/R/plots.R b/R/plots.R index e437997..06f2705 100644 --- a/R/plots.R +++ b/R/plots.R @@ -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"