View source: R/e_plot_calc_break_interval.R
e_plot_calc_break_interval | R Documentation |
Interval for plot breaks, determine a "nice" length of seq(by = Interval)
e_plot_calc_break_interval(
values,
num_intervals = 10,
val_leading_digits = c(1, 2, 5, 10)
)
values |
numeric values for an axis |
num_intervals |
rough desired number of intervals |
val_leading_digits |
leading digits to consider (in ascending order, end with 10) |
interval for breaks; if length(values) == 1
, then return values
e_plot_calc_break_interval(1:250)
e_plot_calc_break_interval(1:1000)
e_plot_calc_break_interval(-1:1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.