[R] expression()

baptiste auguie baptiste.auguie at googlemail.com
Sun Dec 20 17:33:26 CET 2009


Hi,

try this,

ylab = expression(Temperature~(degree*F))

?plotmath

baptiste

2009/12/20 Kim Jung Hwa <kimhwamaillist at gmail.com>:
> Hi All,
>
> I'm wondering if its possible to write degree in symbol.
>
> I would like y-label as "Temperature (degreeF)". where degree should be in
> symbols. Thanks in advance,
>
> #R Code
> library(lattice)
> data(barley)
> barchart(yield ~ variety | site, data = barley,
>         groups = year, layout = c(1,6),
>         ylab = "Temperature (degreeF)",
>         scales = list(x = list(abbreviate = TRUE,
>                       minlength = 5)))
> ~Kim Jung Hwa
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list