On Tue, Mar 19, 2013 at 9:29 AM, Benjamin Gillespie <gybrg@leeds.ac.uk>wrote:

> Hi all,
>
> I'm having problems finding the correct format for a command.
>
> I would like to write some text on a plot.
>
> I'm using the following command:
>
> text(x,y,"text here", srt=90)
>
> I would like the text to read:
>
> capacity 10^3 m^3
>
> (with ^ denoting superscript (i.e. each '3' as superscript).
>

What did you try?

Anyhow, this works

text(1,1,expression("capacity"~10^3~m^3))

  -thomas

-- 
Thomas Lumley
Professor of Biostatistics
University of Auckland

	[[alternative HTML version deleted]]

