powered by
binning(x, weights, breaks, binned = FALSE, range.x, na.rm=TRUE)
x
TRUE
weights
FALSE
hist
ofc0 = rnorm(1000,34.5,1.5) ofc = round(ofc0) out0 = binning(ofc0) out = binning(ofc, binned=TRUE) plot(out, type='l') lines(out0, col=2)
Run the code above in your browser using DataLab