Displaying 1 result from an estimated 1 matches for "tp1460261p1460264".
2010 Feb 02
2
mysterious extra spaces appearing in expression paste
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)