R/histogram.R

### Change default unit of y-axis to 'count'

histogram <- function(..., type='count', fit) {
  if(!missing(fit)) {
    lattice::histogram(..., type = 'density', fit=fit)
  } else {
    lattice::histogram(..., type = type)   
  }
}
mobilizingcs/MobilizePrime documentation built on May 23, 2019, 5:07 a.m.