scripts: Add background for comparison plot

This commit is contained in:
Elias Projahn 2024-11-30 10:20:13 +01:00
parent 8358f7e5e7
commit 7c8cc99d34

View file

@ -144,12 +144,22 @@ threshold_gtex <- data[percentile_gtex >= 0.95, min(score_gtex)]
threshold_cmap <- data[percentile_cmap >= 0.95, min(score_cmap)] threshold_cmap <- data[percentile_cmap >= 0.95, min(score_cmap)]
fig <- plotly::plot_ly() |> fig <- plotly::plot_ly() |>
plotly::add_markers(
data = data[count == 0 & !(gene %chin% genes_literature)],
x = ~score_gtex,
y = ~score_cmap,
marker = list(
size = 2,
color = "#919191",
opacity = 0.5
),
cliponaxis = FALSE
) |>
plotly::add_markers( plotly::add_markers(
data = data[count >= 1 & !(gene %chin% genes_literature)], data = data[count >= 1 & !(gene %chin% genes_literature)],
x = ~score_gtex, x = ~score_gtex,
y = ~score_cmap, y = ~score_cmap,
color = ~count, color = ~count,
colors = c("#7d19bf", "#ff7f2a"),
marker = list( marker = list(
size = 4, size = 4,
opacity = 0.8 opacity = 0.8