error/warning message while doing kmTCGA survival plot
1
1
Entering edit mode
colonppg ▴ 30
@colonppg-7771
Last seen 7.7 years ago
United States

anyone encountered the same message while using kmTCGA?

Scale for 'colour' is already present. Adding another scale for 'colour', which will replace the existing scale.
Scale for 'fill' is already present. Adding another scale for 'fill', which will replace the existing scale.
Warning message:
In .get_data(fit, data = data) :
  The `data` argument is not provided. Data will be extracted from model fit.
 

Many thanks! By the way, Is there play to update the RTCGA package to the latest TCGA data?

Thanks

RTCGA survival kmTCGA • 2.0k views
ADD COMMENT
1
Entering edit mode
jpgsabino ▴ 10
@jpgsabino-12874
Last seen 7.7 years ago

Hello,

I am using ggsurvplot (package survminer) and I had the same problem:

Warning message:
In .get_data(fit, data = data) :
  The `data` argument is not provided. Data will be extracted from model fit.

kmTCGA uses ggsurvplot to plot the nice Kaplan Meier. Probably the issue lies there.

 

  Dataset$TimeToEvent <- with(Dataset, Surv(Time_to_event, Event == 1))
  fit <- survfit(TimeToEvent ~ 1, data=Dataset, conf.type = "log")  
  ggsurvplot(
   fit,    # survfit object with calculated statistics.
   data=Dataset,            # dataset
   risk.table = TRUE,       # show risk table.
   ncensor.plot=TRUE,
   risk.table.y.text=FALSE,
   legend.title = "",
   conf.int = TRUE       # show confidence intervals for 
                            # point estimaes of survival curves.
    )

 

If you don't specify the data=Dataset you will get the message.

Reference: https://github.com/kassambara/survminer/pull/135/files

 

Grts

 

 

 

ADD COMMENT

Login before adding your answer.

Traffic: 326 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6