Re: [R] Adding exponents (superscript format) to a plot
# Using expression to add superscipts to the labels vec=c(1,10,100,1000,1,10,100,1000) plot(vec,vec,log=xy, axes=F) axis(1, at=10^c(0,2,4,6), labels=expression(1, 10^2, 10^4, 10^6)) axis(2, at=10^c(0,2,4,6), labels=expression(1, 10^2, 10^4, 10^6), las=1) box() --- Judith Flores [EMAIL PROTECTED] wrote: Hi, I need to add exponents to a label in one of the axes of a plot, how can I do this? Thank you, Judith Food fight? Enjoy some healthy debate __ R-help@stat.math.ethz.ch 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. __ R-help@stat.math.ethz.ch 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.
[R] Adding exponents (superscript format) to a plot
Hi, I need to add exponents to a label in one of the axes of a plot, how can I do this? Thank you, Judith Food fight? Enjoy some healthy debate __ R-help@stat.math.ethz.ch 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.
Re: [R] Adding exponents (superscript format) to a plot
On 21/06/2007 7:39 PM, Judith Flores wrote: Hi, I need to add exponents to a label in one of the axes of a plot, how can I do this? See ?plotmath. For example, plot(1,2, xlab=expression(x^2), ylab=expression(exp(-x^2/2))) Duncan Murdoch __ R-help@stat.math.ethz.ch 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.