Go to TogaWare.com Home Page. Data Science Desktop Survival Guide
by Graham Williams
Duck Duck Go

Line Chart Log Custom Labels

Raw

\includegraphics[width=\textwidth]{figures/onepager/ggplot2:frequency_rainfall_log_x_label-1}

mm <- function(x) { sprintf("%smm", x) }

ds                                                                    %>%
  filter(rainfall != 0)                                               %>%
  ggplot(aes(x=rainfall))                                              +
  geom_density()                                                       +
  scale_x_log10(breaks=c(1, 10, 100), labels=mm)                       +
  annotation_logticks(sides="bt")                                      +
  theme(legend.position="none")


Support further development by purchasing the PDF version of the book.
Other online resources include the GNU/Linux Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 2000-2020 Togaware Pty Ltd. . Creative Commons ShareAlike V4.