helper_breaks | R Documentation |
Adds intuitive middle values to a vector of values. Useful for when plotting data on logarithmnic plots.
helper_breaks(x, factors = c(2.5, 5))
x |
(num vectr) A vector of values. |
factors |
(num vectr) Factors to use to create the new values. Default is 2.5 and 5. |
#standard log10 breaks
10^(0:5)
#add extra
helper_breaks(10^(0:5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.