Ernesto Barrios
2000-Jun-20 17:13 UTC
[R] xlab not displayed when 'expression' is used in R 1.1.0
Greetings everyone, I'll appreciate any help to understand the problem I'm having with 'expression' when I use it to label the x-axis of a plot. I get the same behaviour under Windows NT4 SP6, and Windows 2000. Trying plot(1:10,1:10,xlab=expression(X[i]),ylab=expression(Y[j])) R 1.0.1 does what I'd expected it to do. However R 1.1.0 shows the y-label properly but the x-label is not displayed at all. While plot(1:10,1:10,xlab="X",ylab="Y") shows the x & y labels correctly in both versions. I obtain the same unexpected results using the postcript driver. I looked at the ps file and the X_i for the x-label is missing. Am I missing something with my Rw1.1.0? Thanks for your help, Ernesto Barrios ebarrios at engr.wisc.edu CQPI/UW-Madison -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thomas Lumley
2000-Jun-20 17:24 UTC
[R] xlab not displayed when 'expression' is used in R 1.1.0
On Tue, 20 Jun 2000, Ernesto Barrios wrote:> Greetings everyone, > > I'll appreciate any help to understand the problem I'm having with > 'expression' when I use it to label the x-axis of a plot. > > I get the same behaviour under Windows NT4 SP6, and Windows 2000. > TryingI also get this with today's r-devel under Debian, so it's not just a Windows problem. It's happening inside title() These work title(xlab="foo") title(ylab="foo") title(ylab=expression(X)) but title(xlab=expression(X)) doesn't -thomas -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thomas Lumley
2000-Jun-20 18:07 UTC
[R] xlab not displayed when 'expression' is used in R 1.1.0
On Tue, 20 Jun 2000, Ernesto Barrios wrote:> Greetings everyone, > > I'll appreciate any help to understand the problem I'm having with > 'expression' when I use it to label the x-axis of a plot. > > I get the same behaviour under Windows NT4 SP6, and Windows 2000. > Trying > > plot(1:10,1:10,xlab=expression(X[i]),ylab=expression(Y[j])) > > R 1.0.1 does what I'd expected it to do. However R 1.1.0 shows the > y-label properly but the x-label is not displayed at all. WhileOk, I think I've found it. It looks like a cut-and-paste error in do_title in plot.c -thomas -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._