Description Usage Arguments Details Value
This function tries to replicate/approximate the nice functionality of log-transformation ('scales' package to be used for 'ggplot2' plots, using for example ggplot2::scale_x_log10()). that automatically shows breaks values in the original scale, even though the axis is on a transformed scale. Unfortunately, that is not the default behaviour of other transformations, and the modulus transformation in particular.
1 | modulus_breaks(p_custom, n.breaks_default = 10)
|
p_custom |
p transformation exponent, as in scales::modulus_trans |
n.breaks_default |
number of breaks |
This function does not aim for a clever algorithm. Rather it just calculates optimal breaks (labeling::extended) on the original and transformed scales, and combine them, expressing all in the original scale
Take a look at scales::log_breaks and ?scales::log_trans
numeric vector with the breaks
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.