Skip to contents

Remove Y axis padding

Usage

acid_scale_y_continuous_nopad()

Value

ggproto.

Note

Updated 2023-08-11.

Examples

library(ggplot2)
g <- ggplot(data = mpg, aes(x = class)) +
    geom_bar()
## By default, plots contain padding at the top of the graph.
print(g)

## This function will automatically remove the padding.
g + acid_scale_y_continuous_nopad()