Re: [R] superscript in figures - basic question

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Tue 14 Jun 2005 - 17:31:55 EST

Chuck Cleland <ccleland@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@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@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
Received on Tue Jun 14 17:35:10 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:33 EST