R scientific notation in plots -


i have simple plot:

#!/usr/bin/rscript                                                                                      png('plot.png')  y <- c(102, 258, 2314)                                                                          x <- c(482563, 922167, 4462665)  plot(x,y) dev.off() 

r uses 500, 1000, 1500, etc y axis. there way can use scientific notation y axis , put * 10^3 on top of axis figure below?

enter image description here

this sort of hacky way, there's nothing wrong it:

plot(x,y/1e3, ylab="y /10^3") 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

python - No response in ssh.exec_command in paramiko -