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?
this sort of hacky way, there's nothing wrong it:
plot(x,y/1e3, ylab="y /10^3")
Comments
Post a Comment