vignettes/annoticks.Rmd
annoticks.Rmd
library(ggplot2) library(gridExtra) library(ggalt) library(scales)
p <- ggplot(msleep, aes(bodywt, brainwt)) + geom_point() # add identity scale minor ticks on y axis p + annotation_ticks(sides = 'l')
# add identity scale minor ticks on x,y axis p + annotation_ticks(sides = 'lb')
# log10 scale p1 <- p + scale_x_log10() # add minor ticks on both scales p1 + annotation_ticks(sides = 'lb', scale = c('identity','log10'))