Pretty Scientific Notation on R Plots

Pretty Scientific Notation on R Plots

Here is a nifty tool to beautifully format large or small numbers on R plot axes

library(sfsmisc)
plot(c(1,10,100,1000),c(0,1,2,3),xaxt=`n`,log=`x`)
eaxis(1, at=c(1,10,100,1000))