Re: [R] Adding exponents (superscript format) to a plot

From: John Kane <jrkrideau_at_yahoo.ca>
Date: Fri, 22 Jun 2007 07:44:23 -0400 (EDT)


# Using expression to add superscipts to the labels

vec=c(1,10,100,1000,10000,100000,1000000,10000000)   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()

> 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_at_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_at_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. Received on Fri 22 Jun 2007 - 11:49:53 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 22 Jun 2007 - 12:32:13 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.