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



CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

Line Chart Log X Axis

20200823

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

ds                                                                    %>%
  filter(rainfall != 0)                                               %>%
  ggplot(aes(x=rainfall))                                              +
  geom_density()                                                       +
  scale_x_log10()                                                      +
  theme(legend.position="none")

A common approach to dealing with the skewed distribution is to transform the scale to be a logarithmic scale, base 10. The following code produces Figure [*].


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.