在R中使用ggsurvplot函数做生存曲线报错,我的代码如下:
> s<-survfit(Surv(FFSt,FFSs==1)~time,data=f)
> p1<-ggsurvplot(s, size=1.3,data=f,palette=c('#00c000','#0000c0', '#ff0000'),legend="none",ylab="Failure free survival",xlab = "Months",censor = FALSE,break.x.by =10)
运行后ggsurvplot函数报错:
Error in Summary.factor(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, :
‘range’ not meaningful for factors
相似问题