kassambara / survminer

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

Make .buildggsurvplot an exported function #569

Open NikNakk opened 2 years ago

NikNakk commented 2 years ago

survminer:::.buildggsurvplot is useful for obtaining a gtable from a ggsurvplot for use in ggsave or for downstream manipulation. At present, it's a non-exported function and so the interface could be changed without notice in future, and is presumably not recommended for use in external production code. It would be helpful to consider exporting it, presumably without the leading . in the name.

This would help with issues such as #544 and #152.

gernophil commented 1 year ago

How can I use this function as long, as it is not exported? survminer:::.buildggsurvplot as well as getFromNamespace(".buildggsurvplot", "survminer") raise Error: object '.buildggsurvplot' not found.