[R] making a plot
Enrico Colosimo
enricoc57 at gmail.com
Mon Oct 20 16:46:28 CEST 2014
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]]
More information about the R-help
mailing list