I am trying to decrease the vertical spacing between my box plots and y-axis "type" groups. I can't seem to find my issue replicated anywhere else...
bp <- ggplot(data = data, aes(x=type, y=time.from.sunset))
bp + geom_boxplot(width = 0.4, fill = "white") +
coord_flip() + #switches x and y axes
scale_y_reverse(limits=c(60,-20), breaks = c(60, 55, 50, 45, 40, 35, 30, 25, 20, 15, 10, 5, 0, -5, -10, -15, -20), labels = list(60, "", 50, "", 40, "", 30, "", 20, "", 10, "", "sunset", "", -10, "", -20)) +
geom_point(size = 1.5, shape = 1) +
labs(x = "Fly type\n", y = "\nTime from sunset (minutes)") +
theme(strip.background = element_blank()) +
theme(panel.background = element_rect(fill="white")) +
theme(axis.text.y = element_text(colour = "black", size = 14)) +
theme(axis.text.x = element_text(colour = "black", size = 10)) +
theme(axis.title.x = element_text(colour = "black", size = 14)) +
theme(axis.line.x = element_line(colour = "black")) +
theme(axis.ticks.y = element_blank()) +
geom_hline(yintercept=0, linetype="dashed", color = "red", size=0.5)