library(tidyverse)
library(cowplot)
p1 <- ggplot(mtcars, aes(factor(cyl))) +
geom_bar(fill = "#56B4E9", alpha = 0.8) +
scale_y_continuous(expand = expansion(mult = c(0, 0.05))) +
theme_minimal_hgrid()
p1
Cowplot v1.0.0 seems to work fine. See above. Things break though when I try to add minor gridlines to the plot above:
p1 + theme(panel.grid.minor.y = element_line())
Why does it plot the gridlines as solid black instead of a soft grey? I know I could probably specify color = "lightgrey"
but I'm not sure if lightgrey is the proper grey to match everything else, and would prefer to use defaults. Did I miss something?