I have a plot that shows percentage of improvement over time. This plot has some -inf values because there has been a decrease from the initial value of 0. I'd like to keep these values in the plot if possible because they show there is a decrease.
I've tried labeling:
... + 
geom_text(data=subset(symptom_data, is.infinite(improvement) == TRUE),
          aes(months, improvement, label="divide by 0"))
I've tried a few different conditions other than is.infinite(improvement) == TRUE, but I always get the same error:
Error: Aesthetics must be either length 1 or the same as the data (1): x, y, colour
Oddly enough It will label the -inf values if I include other values in the condition, such as improvement < 5.
Is there any way to label only inf and -inf?
 
     
    
