histbreaks | R Documentation |
Select randomly size
breakpoints from breaks
. If outer
is TRUE
then
the first and last element of breaks
is always included into the returned break points.
If size
is a vector then first the number of breakpoints is sampled from size
.
histbreaks(breaks, size, outer = TRUE, ...)
breaks |
numeric: a vector of possible break points |
size |
integer: number of break points |
outer |
logical: should be the first and last element of breaks included (default: |
... |
further parameters given if sampling of |
a vector of breakpoints
# includes always 100 and 200
histbreaks(seq(100, 200, by=10), 4)
# includes always 100 and 200 and chooses randomly between 3 to 5 bareak points
histbreaks(seq(100, 200, by=10), 3:5)
# may not include include 100 and 200
histbreaks(seq(100, 200, by=10), 4, outer=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.