[R] Math and symbols in titles of plots

Martin Maechler maechler at stat.math.ethz.ch
Tue Oct 26 19:42:48 CEST 1999


>>>>> On Tue, 26 Oct 1999 19:31:33 +0200 (MET DST), Martin Maechler
>>>>> <maechler at stat.math.ethz.ch> said:

    MM> It *was* a bug in the 0.64.1 R version, but not anymore.

    MM> (we *do* fix bugs quite a bit!... as you can see in "BUGS FIXED"
    MM> parts of the NEWS file (and you can also see in the announcements
    MM> of new R versions))

    >>> Is this a bug - If there is a break in the title of a plot ( with
    >>> \n), the symbols or math is "broken"?  for example:

   >> > version
   >> ....
   >> major      0
   >> minor      64.1
   >> ....
   >> 
   >> > plot(0)
   >> #This works just fine
   >> > title(expression(paste("This works with math ", mu)))
   >> #This "looks" bad
   >> > plot(0)
   >> > title(expression(paste("This does not works with math \n", mu, "with this additional text")))


Excuse me, Partha, I misinterpreted your question/ statements
(and we *did* fix a bug here!) -- I'm feeling silly, really sorry...

but there *is* still a bug here  :

 The line break happens alright, but the two lines are not centered
 properly, but rather "as a whole"

 This is shown (somewhat more easily for cut&paste)

  plot(0);title(expression(paste("Bad\n",mu," with much much more text")))

--> I send a bug report to R-bugs (unless there's one already there)

Martin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list