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

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -