[R] Why do I get a linebreak in the legend?

2006-11-09 Thread CG Pettersson
Dear all, W2k, R2.4.0 I want to place a legend in a regression plot, stating the adjusted R-square value. After some struggle with the coding I am nearly there, but only nearly. The best try so far is: legend(topleft, expression(paste(R[adj]^2), = 0.66)) This places the proper information in

Re: [R] Why do I get a linebreak in the legend?

2006-11-09 Thread Dimitris Rizopoulos
://www.student.kuleuven.be/~m0390867/dimitris.htm - Original Message - From: CG Pettersson [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent: Thursday, November 09, 2006 9:10 AM Subject: [R] Why do I get a linebreak in the legend? Dear all, W2k, R2.4.0 I want to place a legend in a regression

Re: [R] Why do I get a linebreak in the legend?

2006-11-09 Thread Andrew Robinson
Hi CG, move one of the parens: legend(topleft, expression(paste(R[adj]^2, = 0.66))) Cheers Andrew On Thu, Nov 09, 2006 at 09:10:49AM +0100, CG Pettersson wrote: Dear all, W2k, R2.4.0 I want to place a legend in a regression plot, stating the adjusted R-square value. After some

Re: [R] Why do I get a linebreak in the legend?

2006-11-09 Thread Gabor Grothendieck
Try: legend(topleft, expression(R[adj]^2 == 0.66)) On 11/9/06, CG Pettersson [EMAIL PROTECTED] wrote: Dear all, W2k, R2.4.0 I want to place a legend in a regression plot, stating the adjusted R-square value. After some struggle with the coding I am nearly there, but only nearly. The best