I am trying to modify the bar's borderline of sv_waterfall() of the shapviz package with no success. I want to customize my shap's waterfall plot by eliminating the linetype (by supllyinglinetype=none, but it fails miserably.
I found (in rdrr.io) that the developer of this package uses gggenes::geom_gene_arrow() under the hood (please correct if I am wrong) to produce their waterfall plots. I think that this type of customization is far beyond my understanding.
Here my code
shap_mlr <- fastshap::explain(
MLR_N_All,
X = X_df_train,
nsim = 1000,
pred_wrapper = predict,
shap_only = FALSE,
adjust = TRUE
)
sv_LM <- shapviz(shap_mlr)
sv_LM_wtf <- sv_waterfall(sv_LM, row_id = 3, fill_colors=c('#FF0051', '#008BFB')) +ggtitle("LM")+
theme(text=element_text(size=14,family="Palatino"),
axis.title.x=element_blank())
## + gggenes::geom_gene_arrow((aes(linetype = 0)) #fail
sv_LM_wtf
Any idea?


Instead of removing the line, you can set the bar color to its fill color.