Skip to content

hist will not use parameter xaxs (PR#4219)

1 message · Uwe Ligges

#
mwall@diversa.com wrote:

            
Please don't submit bug reports for outdated versions of R.
>
What documentation tells us that hist() accepts an argument "xaxs"? I 
cannot find any. Hence it is *not* a bug. You can use par() to set 
parameters like this.


What you can do is:

  dat <- 0:9
  par(xaxs = "i")
  hist(dat, right = FALSE, xlim = c(0, 5), breaks = 10)

or subset your data itself:

  hist(t[t<5], right = FALSE, breaks=0:5)

Uwe Ligges