R/panelhist.R

Defines functions panelhist

Documented in panelhist

panelhist <-
function(x, ...)
{
    usr <- par("usr"); on.exit(par(usr))
    par(usr = c(usr[1:2], 0, 1.5) )
    h <- hist(x, plot = FALSE)
    breaks <- h$breaks; nB <- length(breaks)
    y <- h$counts; y <- y/max(y)
    rect(breaks[-nB], 0, breaks[-1], y, col="blue", border="blue", ...)
}
AndrewLJackson/siar documentation built on May 5, 2019, 5:59 a.m.