[R] Main title of plot

From: Marco Boks <marco.boks_at_inter.nl.net>
Date: Wed 26 Jul 2006 - 21:17:32 EST

I am a newbie, and I am afraid this may be a rather trivial question. However I could not find the answer anywhere.  

I am plotting a series of plots with different values for p. In the main title of a plot I have used the following code:    

plot(a,b,type="l",ylim=c(0,1), xlab="freq",ylab="power", main=c("maximum gain=",p) )  

That works fine. However the value of p is plotted on a new line, instead of just after the "="  

Is there anyway to print the value of p on the same line?  



        [[alternative HTML version deleted]]

R-help@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 and provide commented, minimal, self-contained, reproducible code. Received on Wed Jul 26 21:24:20 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 26 Jul 2006 - 23:03:45 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.