X dates 18
Hallo Gast!
Artikel über x dates 18:
Date x-axis — Stack Overflow
Adding annotate text to plot with as.Date x-axis. I’ve seen similar questions but the answers did not seem to help my graph. I have a plot here: I’m trying to add text to describe the decrease as
Adding annotate text to plot with as.Date x-axis.
Klicken Sie hier für X dates 18
I’ve seen similar questions but the answers did not seem to help my graph. I have a plot here: I’m trying to add text to describe the decrease as -29%. I’ve tried adding. But I keep getting the error. Can you please include your data (ideally a minimal subset of your data) using dput so we can try to figure out the problem? I think you need to use named arguments for the label (ie. label = -29%’ ). Otherwise, I think it might put «-29%» into the xmin argument. At what x value do you want the annotation to appear? 4 is pretty meaningless when it comes to dates. do you want it on the 4th bar? The 4th day? 4th month or year? You could try, e.g., + annotate(«text», x = as.Date(«2017-07-01»), y = 10, «-29%») to stick it in the middle.