Benoit Boulinguiez
2008-Sep-23 16:57 UTC
[R] superscript text style in axis label in graph
Hi all, I'd like to use superscript or subscript in the axis label of a graph. Is that possible in R? For instance in xlab="Ce (mmol/m3)", I'd need the "3" of cubic meter in superscript. Regards/Cordialement ------------- Benoit Boulinguiez Ph.D Ecole de Chimie de Rennes (ENSCR) Bureau 1.20 Equipe CIP UMR CNRS 6226 "Sciences Chimiques de Rennes" Campus de Beaulieu, 263 Avenue du Général Leclerc 35700 Rennes, France Tel 33 (0)2 23 23 80 83 Fax 33 (0)2 23 23 81 20 http://www.ensc-rennes.fr/ [[alternative HTML version deleted]]
Dear Benoit, Perhaps plot(1:10,xlab=expression(Ce (mmol/m^3))) See also ?plotmath for more information. HTH, Jorge On Tue, Sep 23, 2008 at 12:57 PM, Benoit Boulinguiez < benoit.boulinguiez@ensc-rennes.fr> wrote:> Hi all, > > I'd like to use superscript or subscript in the axis label of a graph. Is > that possible in R? > For instance in xlab="Ce (mmol/m3)", I'd need the "3" of cubic meter in > superscript. > > > Regards/Cordialement > > ------------- > Benoit Boulinguiez > Ph.D > Ecole de Chimie de Rennes (ENSCR) Bureau 1.20 > Equipe CIP UMR CNRS 6226 "Sciences Chimiques de Rennes" > Campus de Beaulieu, 263 Avenue du Général Leclerc > 35700 Rennes, France > Tel 33 (0)2 23 23 80 83 > Fax 33 (0)2 23 23 81 20 > http://www.ensc-rennes.fr/ > > > > [[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. > >[[alternative HTML version deleted]]