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

Petr Pikal petr.pikal at precheza.cz
Mon Apr 3 11:22:12 CEST 2006


Hi

You did not tell us much about what the problem is. I presume that 
dates(as.character(tam[,tkolon]))
is not evaluated correctly and therefore not plotted but it is only 
my guess.

If you want more specific answer you shall stick more closely to the  
rules specified in posting guide.

HTH
Petr

> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html



On 31 Mar 2006 at 13:11, Levent TERLEMEZ wrote:

Date sent:      	Fri, 31 Mar 2006 13:11:31 +0300
From:           	Levent TERLEMEZ <lterlemez at anadolu.edu.tr>
To:             	R Project Help - Mail LÝst <r-help at stat.math.ethz.ch>
Subject:        	[R] adding texts to plots and a problem....

> 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.
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html

Petr Pikal
petr.pikal at precheza.cz




More information about the R-help mailing list