从 R 图中删除科学记数法

Remove Scientific Notation from R plot

我正在尝试从直方图的 x 轴上删除科学记数法。选项(scipen=999)没有工作。

感谢您的帮助。

将地块分成不同的块

hist(CatLotData2$'LOT SIZE')

CatLotData2$LotCat <-cut(CatLotData2$'LOT SIZE',
    c(0,1000,2000,3000,4000,5000,6000,7000,8000,9000,10000,12500,15000,17500,Inf))

##I have tried several options to remove scientific notation from the histogram.Below is what I have tried and failed.

plot(CatLotData2$LotCat)

## What I have tried to use and failed.
options(scipen = 999)

options("scipen"=0, "digits"=5)

format(1e03, scientific=FALSE) ## creates output on separate chart 
format(3e03, scientific=FALSE)
format(4e03, scientific=FALSE)

plot(CatLotData2$LotCat)

问题出在 cut。使用dig.lab调整位数

CatLotData2$LotCat <-cut(CatLotData2$'LOT SIZE',
c(0,1000,2000,3000,4000,5000,6000,7000,8000,9000,10000,12500,
        15000,17500,Inf), dig.lab = 10)