Skip to content

Commit 0b123bd

Browse files
committed
fix swarm plot order
1 parent e43f614 commit 0b123bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/plot_surv_shap.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ plot_shap_global_beeswarm <- function(x,
325325
ggplot(data = df, aes(x = shap_value, y = variable, color = var_value)) +
326326
geom_vline(xintercept = 0, color = "#ceced9", linetype = "solid") +
327327
geom_jitter(width = 0, height = 0.15) +
328+
scale_y_discrete(limits=rev) +
328329
scale_color_gradient2(
329330
name = "Variable value",
330331
low = colors[1],

0 commit comments

Comments
 (0)