[R] making a plot
Andrés Aragón
armandres at gmail.com
Mon Oct 20 17:24:51 CEST 2014
Enrico,
This may help you:
text(locator(1), "*", cex=1.5,adj=0.5
and
text(locator(1), "º", cex=1.5,adj=0.5
Draw your plot, then write the code, locate the cursor on your plot, put
the symbols where you want itl and click.
Regards,
Andrés
PS ?locator
2014-10-20 9:46 GMT-05:00 Enrico Colosimo <enricoc57 at gmail.com>:
> 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 at 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.
>
[[alternative HTML version deleted]]
More information about the R-help
mailing list