kassambara / survminer

Survival Analysis and Visualization
https://rpkgs.datanovia.com/survminer/
507 stars 162 forks source link

Changing size of "large dash". #642

Open georgecresswell opened 9 months ago

georgecresswell commented 9 months ago

How can I change the size of the "large dash" when using tables.y.text = FALSE?

I've tried p$table = p$table + theme(axis.text.y = ggtext::element_markdown(size = 1)) but size doesn't change. However face and colour do work.

georgecresswell commented 9 months ago

I believe it is because if(!y.text$table) x$table <- .set_large_dash_as_ytext(x$table) gets called in .build_ggsurvplot and overwrites the size specification. I'm setting y.text$table = T after creating the plot to avoid this as a hack.