A function for use with plotHist. Creates a matrix representing breaks of a histogram. The matrix will contain the upper bounds, the lower bounds and the frequencies of the breaks in the columns, and the individual breaks in the rows.
createBreakMat(x, breaks = 15, scale = FALSE)
x | vector of values |
---|---|
breaks | number of breaks |
scale | logical, if TRUE, the area within the rectangle will be scaled to one (density) |