Skip to contents

This is a light wrapper around ggplot2::scale_y_continuous that sets an expand argument of mult = c(0, 0.05). The purpose of this is just to align the bases of bars with the x-axis, rather than the default that leaves a gap between bars and the x-axis.

Usage

scale_y_barcontinuous(top = 0.05, ...)

Arguments

top

Numeric, giving the ratio by which to set the upper padding. Defaults 0.05, as is the case for the underlying ggplot2::scale_y_continuous.

...

Additional arguments passed on to ggplot2::scale_y_continuous.