rat_breaks | R Documentation |
Function to compute tick marks evenly spaced on the log scale but with pretty numbers on the ratio scale
rat_breaks(base = exp(1), n = 5)
base |
Scalar, base of the logarithm in use (not implemented) |
n |
scalar, target number of breaks (not implemented) |
Function to apply over a vector values to generate axis breaks
ggplot2::ggplot(data = data.frame(x= 1:6, y = seq(-1, 1.5, 0.5))
, ggplot2::aes(x, y))+
ggplot2::geom_point()+
ggplot2::scale_y_continuous(
, breaks = rat_breaks()
) +
ggplot2::geom_hline(yintercept = 0, size = 0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.