log scale for R plot

  • We can use the Scales package ready function to make the axis scaled non linearly e.g. scale_x_continuous() or scale_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’)

References

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
  • 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