[R] plot sub/super-script, formulas in boxplots
Gabor Grothendieck
ggrothendieck at gmail.com
Mon May 22 04:59:03 CEST 2006
Try this:
boxplot(1:10, xaxt = "n", ylab = quote(mg ~ de ~ CO[2]/100 ~ mL ~ de ~ MC))
On 5/21/06, Marcelo Luiz de Laia <mlaia at fcav.unesp.br> wrote:
> 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
>
> ______________________________________________
> 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
>
More information about the R-help
mailing list