Standardizes the y-axis a ggplot. This is really just a wrapper aroundggplot2::scale_y_continuous() with a default setting for the expand argument to reduce whitespace.

smr_y_axis(expand = expansion(mult = c(0, 0.05)), ...)

Arguments

expand

For position scales, a vector of range expansion constants used to add some padding around the data to ensure that they are placed some distance away from the axes. Use the convenience function expansion() to generate the values for the expand argument. The defaults are to expand the scale by 5% on each side for continuous variables, and by 0.6 units on each side for discrete variables.

...

Other arguments passed on to ggplot2::scale_y_continuous()

Value

A ggplot continuous x-axis scale.