Skip to content
Prev 336653 / 398513 Next

How to superscript

The given solution is the right one for the degree symbol, but does not 
answer the overall question of how to superscript, in particular how to 
superscript with nothing actually preceding the superscript.

In general "^" is used to obtain superscripts in plotmath (RTFM!) and if 
nothing comes before the superscript, replace the nothing by {}.

The following seems to work:

     plot(1:10,xlab="",ylab=expression(Temperature~{}^o*C))

The degree symbol however may be rendered better by "degree" than by "{}^o".

cheers,

Rolf Turner
On 15/02/14 06:20, arun wrote: