[R] how to make some characters in the xlab of a plot to be superscripted or subscript?

Petr Pikal petr.pikal at precheza.cz
Thu Mar 9 12:58:56 CET 2006


Hi

see
?plotmath

# not tested
expression(paste("m^3, "/s"))

but I do not know how / is printed.

HTH
Petr

On 9 Mar 2006 at 11:48, Jing Yang wrote:

Date sent:      	Thu, 9 Mar 2006 11:48:45 +0100
From:           	"Jing Yang" <yangj at student.ethz.ch>
To:             	"r-help" <r-help at stat.math.ethz.ch>
Subject:        	[R] how to make some characters in the xlab of a plot to be
	superscripted or subscript?
Send reply to:  	yangj at student.ethz.ch
	<mailto:r-help-request at stat.math.ethz.ch?subject=unsubscribe>
	<mailto:r-help-request at stat.math.ethz.ch?subject=subscribe>

> Dear R-users,
> 
> I am trying to make my plot nicer. Does anyboby know how to make some
> characters in the xlab of a plot to be superscripted or subscript? ?
> for example "m3/s" in the x-axis label, how to make 3 supersripted?
> 
> Best,Jing
> 
> 

Petr Pikal
petr.pikal at precheza.cz




More information about the R-help mailing list