[R] modify the name of axis of an R function

Petr PIKAL petr.pikal at precheza.cz
Fri Dec 16 08:00:50 CET 2011


Hi

> 
> Thanks you very much!  The way plot(fit, main="main title", xlab="X-axis
> lable", ylab="y-axis label") seems to work quite well, I didn't notice 
that
> I could do this. 
> 
> I have in fact one more problem with it : the fact is that I have three
> plots that are called by the function. I can specify my three titles by
> doing "main=c("title1","title2","title3")" whithout any problem. But
> proceeding this way to specify the axes' titles doesn't work anymore. 
How
> can I specify three differents pairs of titles for these axes?

I am rather confused 

plot(1,1, main=c("title1", "title2"), xlab=c("x1","x2"), 
ylab=c("y1","y2"))

puts 2 titles and two axes labels into one plot but is it really what you 
want?

Regards
Petr 



> 
> Thank you again
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/modify-the-
> name-of-axis-of-an-R-function-tp4198804p4200631.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> 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.



More information about the R-help mailing list