I want to determine if a plot generated by ggplot begins at zero.
I am generating a couple hundred reports that each have thirty or more charts in them. I am content with ggplot's defaults for when a plot starts at zero and when it doesn't, but I want to add a caption that draws the reader's attention to this fact.
Something like:
labs(caption = ifelse(XXXXX, "Note: y-axis does not begin at zero", ""))
But I have no clue what my test should be.