Dear all I am doing some plots in R. I want to have as label in y-axis Temperature (oC). I have used ylab=expression(paste({Temperature} ^o*C)) but what I get is TemperatureoC. How can I have a space between Temperature and the units and also the units to be in brackets? Many thanks Maria [[alternative HTML version deleted]]
Try ylab=expression(Temperature*degree*C)) type demo(mathplot) at R prompt for more customizations. Walmes Zeviani Lavras - MG, Brasil. Lathouri, Maria wrote:> > Dear all > > I am doing some plots in R. > > I want to have as label in y-axis Temperature (oC). I have used > ylab=expression(paste({Temperature} ^o*C)) but what I get is > TemperatureoC. > How can I have a space between Temperature and the units and also the > units to be in brackets? > > Many thanks > Maria > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > >-- View this message in context: nabble.com/superscript-in-ylab-tp26099304p26099677.html Sent from the R help mailing list archive at Nabble.com.
>>> "Lathouri, Maria" <m.lathouri06 at imperial.ac.uk> 10/28/09 6:02 PM >>> >I want to have as label in y-axis Temperature (oC).First, look at ?plotmath and find the 'degree' symbol... Then look at the symbol for spacing. Then try ylab=expression(Temperature~degree*C) ******************************************************************* This email and any attachments are confidential. Any use...{{dropped:8}}