Closed dffyfe closed 3 years ago
Hi Dan,
Adding
cma$event.info <- cma$event.info[ !(cma$event.info[,col.patid] %in% patids.no.events.to.plot), ];
above
cma$data <- cma$data[ !(cma$data[,col.patid] %in% patids.no.events.to.plot), ];
in the inherits(cma, "CMA0")
conditional fixes this. Probably needed above the other 3 instances as well but not 100% sure yet!
Indeed, it was due to "Drug 12" being empty and that messed up the following event intervals -- your suggested fix indeed worked, thanks :)
Hi Dan,
Not sure what is causing this one ATM (note 'Drug 12' doesn't get plotted so could be to do with that), the event-interval bars for Drug 14 and 15 are off. Works fine if you plot Drug 14 on its own so I've included the full data.frame.