On Tue, Mar 19, 2013 at 9:29 AM, Benjamin Gillespie <gy...@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]] ______________________________________________ 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.