breaks_log1p | R Documentation |
A scales breaks generator for log1p scales
breaks_log1p(n = 5, base = 10)
n |
the number of breaks |
base |
the base for the breaks |
a function for ggplot scale breaks
library(tidyverse)
ggplot2::ggplot(diamonds, ggplot2::aes(x=price))+
ggplot2::geom_density()+
ggplot2::scale_x_continuous(trans="log1p", breaks=ggrrr::breaks_log1p())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.