Do not want scientific notation on plot axis

前端 未结 7 1888
死守一世寂寞
死守一世寂寞 2020-11-30 22:12

I regularly do all kinds of scatter plots in R using the plot command.

Sometimes both, sometimes only one of the plot axes is labelled in scientific not

7条回答
  •  旧时难觅i
    2020-11-30 23:03

    Normally setting axis limit @ max of your variable is enough

    a <- c(0:1000000)
    b <- c(0:1000000)
    
    plot(a, b, ylim = c(0, max(b)))
    

提交回复
热议问题