I am trying to put a text label on a ggplot, but I do not want to give the coordinates of the label in the data coordinates, but use some kind of coordinates that are not related to the data. I know the transformation trick:
xrng <- range(x)
yrng <- range(y)
plot <- plot + annotate("text",x = xrng[2], y = yrng[2], label="bla") # plot label on top right
But this does not work well for plots with a logarithmic scale (and you have to do the transformation, which may not always be as easy as in the example). Any ideas?