[R] plot sub/super-script, formulas in boxplots

Marcelo Luiz de Laia mlaia at fcav.unesp.br
Mon May 22 02:47:44 CEST 2006


Hi,

I try this one:

boxplot(dados[,5]~dados$Trat, xaxt = "n", ylab =
    substitute(paste("mg de CO"[2],"/100 mL de MC"),list(x="")))

and I get this one in ylab:

NA/100 mL de MC

If I try this one:

plot(1,2,
     xlab =
     substitute(paste("Arrival date 1 = May 1"^{st},"",list(x=""))),
     ylab =
     substitute(paste("mg de CO"[2],"/100 mL de MC"),list(x="")))

I see this one in ylab:

mg de CO$_2$/100 mL de MC
        ^^^^^
        LaTeX because I dont know how I type sub in txt. I am sorry.

How I do the same in the boxplot? Or isnt possible?

Thank you very much

Marcelo



More information about the R-help mailing list