breaks_exp | R Documentation |
This breaks function typically labels zero and the last n - 1
integers of a
range if that range is large enough (currently: 3). For smaller ranges, it
uses breaks_extended()
.
breaks_exp(n = 5, ...)
n |
Desired number of breaks. You may get slightly more or fewer breaks that requested. |
... |
other arguments passed on to |
All breaks_()
functions return a function for generating breaks. These
functions takes, as their first argument a vector of values that represent
the data range to provide breaks for. Some will optionally take a second
argument that allows you to specify the number of breaks to recieve.
# Small range
demo_continuous(c(100, 102), transform = "exp", breaks = breaks_exp())
# Large range
demo_continuous(c(0, 100), transform = "exp", breaks = breaks_exp(n = 4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.