STHDA forum

survminer » [Solved] survminer font size in at risk table

Administrator

rank_admin.png

Avatar

Signed up since: 10/02/2013

Messages: 32

On 08/06/2017 at 09h47
(e-mail from a user)

Congratulations for the development and maintenance of survminer, the best to my knowledge

survival plotting package for R.

I was able to adjust almost all graphical parameters, with the sole exception of one namely

font size in at risk table. Is it possible to change it?
Would you be so kind and provide me a hint?
Website    

Administrator

rank_admin.png

Avatar

Signed up since: 10/02/2013

Messages: 32

On 08/06/2017 at 09h53
Use the argument fontsize to adjust the font size for the risk table and the cumulative events table.

Code R :
 
# Fit survival curves
require("survival")
fit<- survfit(Surv(time, status) ~ sex, data = lung)
 
 
# Basic survival curves
library(survminer)
ggsurvplot(fit, data = lung,
           risk.table = TRUE,
           fontsize = 4)
 


Best regards,
Website    
Answer
You aren't allowed to write in this category
1 User online : 0 Administrator, 0 Moderator, 0 Member and 1 Visitor
User online : No member online