Log scale for x or y axis with proper grid lines

Use as alternative to scale_y_log10().

scale_y_log10_IQRtools(
  labeltype = c("natural", "comma", "scientific", "standard"),
  n_major = 4,
  n_minor = 0,
  ...
)

scale_x_log10_IQRtools(
  labeltype = c("natural", "comma", "scientific", "standard"),
  n_major = 4,
  n_minor = 0,
  ...
)

Arguments

labeltype

character to determine how labels are printed, either "natural" (default), "comma" (like natural + comma separation for large numbers), "scientific" (nicely print 10 to the power of ...), or "standard" (standard R).

n_major

the number of major labels aiming at. Major labels will always be powers of 10. With n_major it is possible to reduce the number of powers shown.

n_minor

the exact number of minor labels, i.e. labels between powers of 10. The argument is only used if the number of major labels drops below n_major.

...

other arguments going to scale_y_log10. If breaks, minor_breaks and labels are provided, they overwrite the generated breaks, minor breaks or labels.