Dear R-users.
I'm struggeling to fix the superscript of a label of a figure axis. For some
reason R doesn't recognize the "hat" symbol.
plot(1,1,xlab="ligth intensity (PAR)",ylab=expression("mass
Pteridium rhizomes" (gr/0.25m^2)))
A very similiar scriptline does not give any problem at all:
plot(1,1,xlab=expression("balsa plot basal area"
(m^2/ha)),ylab="light intensity (PAR)")
Someone?
_________________________________________________________________
s. It's easy!
aspx&mkt=en-us
Try:
plot(1,1,xlab="ligth intensity (PAR)",ylab=expression("mass
Pteridium
rhizomes" (gr/0.25*m^2)))
________________________________________
Daniel Moreira, MD
Research Associate
Duke University Medical Center
DUMC 2626, MSRB-I Room 455
571 Research Drive
Durham, North Carolina 27710
Telephone: (919) 681-7132
Fax: (919) 668-7093
E-mail: daniel.moreira@duke.edu
David Douterlungne <daviddouter@hotmail.com>
Sent by: r-help-bounces@r-project.org
02/14/2009 12:21 AM
To
<r-help@r-project.org>
cc
Subject
[R] superscript
Dear R-users.
I'm struggeling to fix the superscript of a label of a figure axis. For
some reason R doesn't recognize the "hat" symbol.
plot(1,1,xlab="ligth intensity (PAR)",ylab=expression("mass
Pteridium
rhizomes" (gr/0.25m^2)))
A very similiar scriptline does not give any problem at all:
plot(1,1,xlab=expression("balsa plot basal area"
(m^2/ha)),ylab="light
intensity (PAR)")
Someone?
_________________________________________________________________
s. It's easy!
aspx&mkt=en-us
______________________________________________
R-help@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.
[[alternative HTML version deleted]]
David and Danel, Indeed, the missing symbol is "*". Now it works, although, with a change of font in the brackets of the axis=label. Thanks, david> To: daviddouter at hotmail.com > Subject: Re: [R] superscript > From: davidcross at charter.net > Date: Sat, 14 Feb 2009 17:49:11 -0600 > > > Could it be that the key expression should be something like: > > (gr/(0.25*m)^2) > > Cheers, > David Cross > > > David Douterlungne writes: > >> Dear R-users. >> >> I'm struggeling to fix the superscript of a label of a figure axis. For some reason R doesn't recognize the "hat" symbol. >> >> >> plot(1,1,xlab="ligth intensity (PAR)",ylab=expression("mass Pteridium rhizomes" (gr/0.25m^2))) >> >> >> A very similiar scriptline does not give any problem at all: >> >> plot(1,1,xlab=expression("balsa plot basal area" (m^2/ha)),ylab="light intensity (PAR)") >> >> >> Someone? >> _________________________________________________________________ >> >> s. It's easy! >> >> aspx&mkt=en-us >> ______________________________________________ >> 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._________________________________________________________________ s. It's easy! aspx&mkt=en-us