-
We can use the Scales package ready function to make the axis scaled non linearly e.g.
scale_x_continuous()
orscale_x_log10(...)
- we can further cut off the plot (visually) using the
limits
argument guided by coord_cartesian syntax - useful ones are
scale_x_log10()
scale_x_sqrt()
scale_x_continuous(trans=‘log2’)
- we can further cut off the plot (visually) using the
References
- How to Create a ggplot Frequency Plot in R (koalatea.io)
- ggplot2 axis scales and transformations - Easy Guides - Wiki - STHDA
- Position scales for continuous data (x & y) — scale_continuous • ggplot2 (tidyverse.org)
Metadata
- topic:: 00 Coding00 Coding
#MOC / for programming language, coding guide and libraries focusing on data analytics and html/css
- 01 R programming01 R programming
#MOC / for notes sub to 00 Coding with focus on how I use Jekyll
- 01 R programming01 R programming
- updated:: 2022-10-23 Private or Broken Links
The page you're looking for is either not available or private!
- reviewed:: 2022-10-23 Private or Broken Links
The page you're looking for is either not available or private!
- #Reference