mirror of
https://github.com/johrpan/ubigen.git
synced 2025-10-26 19:57:24 +01:00
scripts: Only include datasets in comparison
This commit is contained in:
parent
fb975f158b
commit
c633d664c1
1 changed files with 11 additions and 4 deletions
|
|
@ -45,7 +45,7 @@ threshold_cmap <- data[percentile_cmap >= 0.95, min(score_cmap)]
|
|||
|
||||
fig <- plotly::plot_ly() |>
|
||||
plotly::add_markers(
|
||||
data = data,
|
||||
data = data[count >= 1],
|
||||
x = ~score_gtex,
|
||||
y = ~score_cmap,
|
||||
color = ~count,
|
||||
|
|
@ -127,13 +127,20 @@ fig <- plotly::plot_ly() |>
|
|||
b = 36
|
||||
)
|
||||
) |>
|
||||
plotly::hide_legend() |>
|
||||
plotly::hide_colorbar()
|
||||
plotly::hide_legend()
|
||||
|
||||
plotly::save_image(
|
||||
fig,
|
||||
fig |> plotly::hide_colorbar(),
|
||||
file = here("scripts/output/comparison.svg"),
|
||||
width = 6.27 * 72,
|
||||
height = 6.27 * 72,
|
||||
scale = 96 / 72
|
||||
)
|
||||
|
||||
plotly::save_image(
|
||||
fig,
|
||||
file = here("scripts/output/comparison_legend.svg"),
|
||||
width = 6.27 * 72,
|
||||
height = 6.27 * 72,
|
||||
scale = 96 / 72
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue