Description Usage Arguments Details See Also Examples
Find the origin.
1 | find_origin(x, binwidth)
|
x |
numeric or integer vector |
binwidth |
binwidth |
This algorithm implements simple heuristics for determining the origin of a histogram when only the binwidth is specified. It:
rounds to zero, if relatively close
subtracts 0.5 offset, if an x is integer
ensures the origin is a multiple of the binwidth
Other reasonable defaults: find_width
1 2 3 | find_origin(1:10, 1)
find_origin(1:10, 2)
find_origin(c(1, 1e6), 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.