[R] superscript in figures - basic question
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Tue Jun 14 09:31:55 CEST 2005
Chuck Cleland <ccleland at optonline.net> writes:
> See ?plotmath.
>
> plot(1:10, 1:10, ylab=expression(BA (m^{2}/ha)))
Ick... The parser will think that BA is a function and m^2/ha its
argument. This probably has consequences for the spacing.
Try expression("BA" * ("m"^2/"ha"))
--
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
mailing list