Re: [R] mysterious extra spaces appearing in expression paste

2010-02-05 Thread Charlie Sharpsteen
On Fri, Feb 5, 2010 at 9:41 AM, George Locke wrote: > > Hey, > > So I found workaround for what I'm now pretty sure is a bug. > > the reason I'm sure it's a bug is that i found that I found that > linebreaks are handled in a wonky but regular way.  There's a rule, > and it's a bad rule, ie a bug.

Re: [R] mysterious extra spaces appearing in expression paste

2010-02-05 Thread George Locke
Hey, So I found workaround for what I'm now pretty sure is a bug. the reason I'm sure it's a bug is that i found that I found that linebreaks are handled in a wonky but regular way. There's a rule, and it's a bad rule, ie a bug. The wonky rule is as follows: text(x,y,expression(paste("thing1 \n

Re: [R] mysterious extra spaces appearing in expression paste

2010-02-02 Thread David Winsemius
On Feb 2, 2010, at 2:13 PM, George Locke wrote: Hi, i'm trying to put a legend on some figures and they're coming out a bit wonky. here's an example: a <- c(1:10) par(mfrow=c(2,1)) plot(a,type="s",lwd=3) leg <- c(expression(paste("data1 (",rho,"=1)")), expression(paste("data2 (",rho,"=0.0)")

Re: [R] mysterious extra spaces appearing in expression paste

2010-02-02 Thread anna
try putting sep="" in your paste method - Anna Lippel -- View this message in context: http://n4.nabble.com/mysterious-extra-spaces-appearing-in-expression-paste-tp1460261p1460264.html Sent from the R help mailing list archive at Nabble.com. __ R

[R] mysterious extra spaces appearing in expression paste

2010-02-02 Thread George Locke
Hi, i'm trying to put a legend on some figures and they're coming out a bit wonky. here's an example: a <- c(1:10) par(mfrow=c(2,1)) plot(a,type="s",lwd=3) leg <- c(expression(paste("data1 (",rho,"=1)")), expression(paste("data2 (",rho,"=0.0)"))) legend("bottomright",legend=leg,col=c(1,2),lwd=3)