mirror of
https://github.com/johrpan/ubigen.git
synced 2025-10-26 19:57:24 +01:00
Reverse axes in distribution plots
This commit is contained in:
parent
aed13425ed
commit
19b395a564
1 changed files with 4 additions and 2 deletions
|
|
@ -22,7 +22,6 @@ overview_plot <- function(ranked_data,
|
||||||
plotly::layout(
|
plotly::layout(
|
||||||
xaxis = list(
|
xaxis = list(
|
||||||
title = "Percentile",
|
title = "Percentile",
|
||||||
autorange = "reversed",
|
|
||||||
tickformat = ".1%"
|
tickformat = ".1%"
|
||||||
),
|
),
|
||||||
yaxis = list(title = "Score"),
|
yaxis = list(title = "Score"),
|
||||||
|
|
@ -133,7 +132,10 @@ scores_plot <- function(ranked_data, highlighted_genes = NULL, ranks = 1000) {
|
||||||
showlegend = FALSE
|
showlegend = FALSE
|
||||||
) |>
|
) |>
|
||||||
plotly::layout(
|
plotly::layout(
|
||||||
xaxis = list(title = ranks_label),
|
xaxis = list(
|
||||||
|
title = ranks_label,
|
||||||
|
autorange = "reversed"
|
||||||
|
),
|
||||||
yaxis = list(title = "Score"),
|
yaxis = list(title = "Score"),
|
||||||
clickmode = "event+select",
|
clickmode = "event+select",
|
||||||
dragmode = "select"
|
dragmode = "select"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue