I have a ggplot2 facet scatter ggplot2 and would like to print a summary of linear regression statistics on each face, as was done here and. Unlike these examples, I use scales="free" , and the data ranges in each face have completely different values, but I would like the summary statistics to be displayed in the same relative position in each face (for example, in the upper right corner or anywhere else). How can I tell geom_text or annotate that the label should be displayed in the same position relative to the panel?
Where am I now:
# Fake data set.seed(2112) x <- c(1:10, 6:15) y <- x + c(runif(10), runif(10)*10) l <- gl(2, 10) d <- data.frame(x=x, y=y, l=l)

I would like, instead, ggplot automatically position the text at the same relative position in each face.
source share