Skip to content

Commit

Permalink
fix jitter height in swarm plot
Browse files Browse the repository at this point in the history
  • Loading branch information
krzyzinskim committed Aug 11, 2023
1 parent d5fd329 commit 57eff0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plot_surv_shap.R
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ plot_shap_global_swarm <- function(x,
with(df, {
ggplot(data = df, aes(x = shap_value, y = variable, color = var_value)) +
geom_vline(xintercept = 0, color = "#ceced9", linetype="solid") +
geom_jitter(width=0) +
geom_jitter(width=0, height=0.15) +
scale_color_gradient2(
name = "Variable value",
low = colors[1],
Expand Down

0 comments on commit 57eff0e

Please sign in to comment.