Entering edit mode
3.2 years ago
isd1989
•
0
Hi everyone.
This is my first post on Biostars, so I am not completely sure that this is the best place to ask this question.
I have been using the survminer package in R to do survival analysis (Kaplan-Meier time-to-event) on my data. It is a great package that works very well for me. The only thing that I have not figured out how to do yet is how to change the number of decimal places that the p-value is displayed at. I have looked at the reference manual and cannot find it there either.
I am hoping that someone knows how to do this and could provide some help please.
Thank you!
Just in case this helps, the code below shows the function that produces the Kaplan-Meier curve.
I had the same query long back. What I was doing to resolve this issue is, extracting the p-value manually using
surv_pvalue()
and then adding it on the KM-plot with thepval
parameterThank you! That's a good workaround and I will give it a go.
Still, I find it a bit strange that there isn't an argument that does this within survminer itself. That would improve reproducibility probably.
Thank you again for taking the time to post your answer above.