Log scale for x or y axis with proper grid lines

Use as alternative to scale_y_log10().

scale_y_log10_IQRtools(labeltype = "auto", n_major = 4,
  n_minor = NULL, ...)

scale_x_log10_IQRtools(labeltype = "auto", n_major = 4,
  n_minor = NULL, ...)

Arguments

labeltype

character to determine how labels are printe, either "auto" (standard), "scientific" (nicely print 10 to the power of ...), or "natural" (the raw numbers).

n_major

the number of major breaks aimed at.

n_minor

the exact number of minor breaks. If NULL (default), the number is automatically determined.

...

other arguments going to scale_y_log10.

Details

The function can be nicely combined with annotation_logticks().

See also