math - Do not want scientific notation on plot axis -


i regularly kinds of scatter plots in r using plot command.

sometimes both, 1 of plot axes labelled in scientific notation. not understand when r makes decision switch scientific notation. surprisingly, prints numbers no sane human write in scientific notation when labelling plot, example labels 5 5e+00. let's have log-axis going 1000, scientific notation unjustified such "small" numbers.

i suppress behaviour, want r display integer values. possible?

i tried options(scipen=10) starts writing 5.0 instead of 5, while on other axis 5 still 5 etc. how can have pure integer values in r plots?

i using r 2.12.1 on windows 7.

use options(scipen=5) or other high enough number. scipen option determines how r switch scientific notation, higher value less switch. set option before making plot, if still has scientific notation, set higher number.


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -