breaks_trans | R Documentation |
Generate a breaks vector of size n
with evenly spaced breaks in trans
domain.
breaks_trans(n = 10, trans)
n |
< |
trans |
< |
Breaks are generated by transforming the input range to trans
domain, generating
a regular sequence of size n
for the transformed range, then inverting the transform.
The input range must be finite for both the input domain and the trans
domain. If
input is not finite, an empty vector is returned.
Other breaks:
breaks_linear()
,
breaks_log()
,
breaks_manual()
,
breaks_power()
,
breaks_symlog()
breaks_trans(trans = scales::identity_trans())(-10:10)
breaks_trans(trans = symlog_trans())(-10:10)
breaks_trans(trans = power_trans())(-10:10)
breaks_manual(c(-10, 0, 10))(-10:10)
breaks_manual(-1:1 * 1e6)(NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.