Histogram in R - x-axis not centered properly

后端 未结 3 1925

I have a histogram from a list d of values that I make by simply typing

hist(d)

And this is what I get:

3条回答
  •  無奈伤痛
    2021-01-21 04:01

    you can tweak the range of x using the xlim tag. For example, try

    hist(d,xlim=c(-10,10))
    

提交回复
热议问题