Hello - I have spent days trying to figure out how to create breaks on my y-axis on a facet_grid in ggplot. I used scale_x_continuous to manipulate my x-axis, but that function will not work for my y-axis. My y-axis is depth in feet, is numeric, and has limits from 0-55.
Here is my code:
do_vs_depth <- ggplot(data = do_monthly_means, aes(x = mean_do, y = reorder(depth_ft, - depth_ft))) + geom_point(color = "steelblue", size = 1) + facet_grid(site ~ month) + scale_x_continuous(limits = c(0, 12), expand = c(0, 0), breaks = seq(0, 10, by = 3)) + # scale_y_continuous(limits = c(0, 60), # breaks = seq(20, 60, by = 10)) + theme_bw() + labs(x = "DO (mg/L)", y = "Depth (ft)")
My graph looks like this: