I am using geom_text
to annotate plots in gglot2
and I want use relative positioning rather than absolute. That is, I want a position of (0.5, 0.5)
to be dead center regardless of the x and y axis limits. Is that possible?
Alternatively I could of course transform a relative position to an absolute one if I had the x and y limits. Is it possible to extract those from a plot?
See Question&Answers more detail:os