Dear all, I am struggling to make a plot for my survival analysis class.
This is my script labels<-c('1','2','3','4','5','6') ano<-c(2001,2002,2003,2004,2006,2008) ranges<-c(6,3,4,5,4,2) dotchart(ano, labels=labels, xlab='ano', ylab='Pacientes',pch=20,xlim=c(min(ano), max(ano+ranges))) segments(ano,1:6,ano+ranges,1:6,pch=25,lty=1,lend=4) I need to put an asterix (failure) by the end of the three first lines and a small circle (censoring) by the end of the last three. Someone can help me? Thanks, Enrico. [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.