Description Usage Arguments Value Examples
Cuts a vector into factors with pretty levels
1 | cut_pretty(x, breaks, collapse = " to ", ...)
|
x |
numeric vectory |
breaks |
numeric vector of two ore more unique cut points |
... |
arguments passed to |
A factor
is returned
1 2 3 | set.seed(42)
x <- runif(n=50, 0, 50)
cut_pretty(x, breaks=pretty(x))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.