log10_minor_break | R Documentation |
This function is scavenged from Stackoverflow and automates log scale minor axis lines (https://stackoverflow.com/questions/30179442/plotting-minor-breaks-on-a-log-scale-with-ggplot).
log10_minor_break(...)
x |
minor breaks object
ggplot(iris, aes(Petal.Width, Petal.Length, color = Species))+
scale_x_continuous(trans = scales::log10_trans(),
minor_breaks = log10_minor_break())+
geom_point()+
publish(major_grid = T,
minor_grid = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.