# Scientific notation in plots

5 messages
Open this post in threaded view
|

## Scientific notation in plots

 Is it possible to use scientific notation of numbers on the axis of plots without using the xEy notation. That means: a beatiful 1x10^3 instead of 1E3. Logarithmic scale, in my case. Thank you very much! Oddmund ******************************************   Oddmund Nordgård   Department of Haematology and Oncology   Stavanger University Hospital   P.O. Box 8100   4068 STAVANGER   Phone: 51 51 89 34   Email: [hidden email] ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Open this post in threaded view
|

## Re: Scientific notation in plots

 try something like this: >axis(side=2, at=c(0, 5e+5, 1.5e+6, 2.5e+6), labels=expression(0, 5%*%10^5, 1.5%*%10^6, 2.5%*%10^6) it will place your 5e+5, 1.5e+6, 2.5e+6 as scientific notation at the correct positions on the y axis. the key is the "labels=expression...." part. Cheers iain --- Oddmund NordgÃ¥rd <[hidden email]> wrote: > > Is it possible to use scientific notation of numbers > on the axis of plots > without using the xEy notation. That means: a > beatiful 1x10^3 instead of 1E3. > Logarithmic scale, in my case. > > Thank you very much! > > Oddmund > > ****************************************** > >   Oddmund Nordgård > >   Department of Haematology and Oncology >   Stavanger University Hospital >   P.O. Box 8100 >   4068 STAVANGER >   Phone: 51 51 89 34 >   Email: [hidden email] > > ______________________________________________ > [hidden email] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help> PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html> ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Open this post in threaded view
|

## Re: Scientific notation in plots

 Just what I needed! Thank you very much! Oddmund On Fri, 13 Jan 2006, IAIN GALLAGHER wrote: > try something like this: > > >axis(side=2, at=c(0, 5e+5, 1.5e+6, 2.5e+6), > labels=expression(0, 5%*%10^5, 1.5%*%10^6, 2.5%*%10^6) > > it will place your 5e+5, 1.5e+6, 2.5e+6 as scientific > notation at the correct positions on the y axis. the > key is the "labels=expression...." part. > > Cheers > > iain > > --- Oddmund NordgÃ¥rd <[hidden email]> wrote: > > > > > Is it possible to use scientific notation of numbers > > on the axis of plots > > without using the xEy notation. That means: a > > beatiful 1x10^3 instead of 1E3. > > Logarithmic scale, in my case. > > > > Thank you very much! > > > > Oddmund > > > > ****************************************** > > > >   Oddmund Nordgård > > > >   Department of Haematology and Oncology > >   Stavanger University Hospital > >   P.O. Box 8100 > >   4068 STAVANGER > >   Phone: 51 51 89 34 > >   Email: [hidden email] > > > > ______________________________________________ > > [hidden email] mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help> > PLEASE do read the posting guide! > > http://www.R-project.org/posting-guide.html> > > ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide! http://www.R-project.org/posting-guide.html