[R] adding texts to plots and a problem....

Levent TERLEMEZ lterlemez at anadolu.edu.tr
Fri Mar 31 12:11:31 CEST 2006


Hello,

I have a problem with adding texts to my plots: The code is

/plot(dates(as.character(tam[,tkolon])),d[,i],ylab=names(d[i]),ylim=c(galt,gust),type="l") 

abline(orta,0,lty=3,col=3)
text(//length(d[,i]//),0.025+(orta),expression(mu),col=3)
abline(orta+l2,0,lty=4,col=2)
text(length(d[,i]),0.025+(orta+l2),expression(+2*sigma),col=2)
abline(orta-l2,0,lty=4,col=2)
text(length(d[,i]),0.025+(orta-l2),expression(-2*sigma),col=2)
abline(orta+l1,0,lty=5,col=3)
text(length(d[,i]),0.025+(orta+l1),expression(+sigma),col=3)
abline(orta-l1,0,lty=5,col=3)
text(length(d[,i]),0.025+(orta-l1),expression(-sigma),col=3)


/in this code, everything is ok without /as.character(tam[,tkolon]))/. 
But when adding the statement, it dosen't work. If there is a known 
solution, sorry for my disturbance. I am new with R.

best regards,
Levent.




More information about the R-help mailing list