[R] Don't understand plotmath behaviour (bug?)
p.dalgaard at biostat.ku.dk
Sat Jul 30 09:16:26 CEST 2005
Gabor Grothendieck <ggrothendieck at gmail.com> writes:
> Numbers, not in characters strings do not come out bold:
> plot(1:5, type = "n")
> text(x=3,y=3, quote(bold(paste("a"==a ~~ "0.5" == 0.5))))
(what's the paste() for?)
...and it is a design choice of course. Notice that operators are not
boldfaced either, e.g., in text(x=3,y=3, quote(bold("x"==2*a + b ~~ "x
= 2a+b"))) you get the = and the + in non-bold in the first part
(granted, a bit hard to see for =). As I recall it, LaTeX does
similarly unless you jump through a couple of hoops. It is
intentional, but if you try to do it otherwise you'd run into trouble
with the absense of a bold symbol font.
> On 7/25/05, Wladimir Eremeev <wl at eimb.ru> wrote:
> > Dear Thomas,
> > TL> In case 1 you have the string "0.5", in case 2 you have the number 0.5.
> > TL> text(x=2,y=2, quote(bold("0.5"==0.5)))
> > TL> shows what is happening.
> > I know about the different types in the cases.
> > That is, 'bold' affects only on text strings.
> > Am I right?
> > ---
> > Best regards,
> > Wladimir mailto:wl at eimb.ru
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
O__ ---- Peter Dalgaard Øster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help