I'm trying to annotate a rectangle in R through ggplot2 for a graph that is in log scale. Here's the annotate layer I am adding:
annotate("rect",xmin=293.3, xmax=312, ymin=-Inf, ymax=Inf, fill='gray')
Of course, I understand the negative infinity is causing problems since it's a log scale and there is no negative value. Since I am pre-specifying my limits on the y-scale, anyone have any thoughts on how to create a 'negative infinity' to infinity rectangle using this method or another method?
