View source: R/internal-plotting_helpers.R
dynamic_pretty_breaks | R Documentation |
Internal helper to compute breaks on a numeric scale, ensuring the number of breaks is in a desired range and aligned with data bounds.
dynamic_pretty_breaks(x, target_n = 8, max_breaks = 12, min_breaks = 3)
x |
A numeric vector. |
target_n |
Target number of breaks. |
max_breaks |
Maximum allowed number of breaks. |
min_breaks |
Minimum allowed number of breaks. |
A numeric vector of break points.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.