use npc units in annotate()
问题 I have a ggplot object. I would like to add some text with annotate() , and I would like to specify the coordinates of the text in npc units. Is this possible? This minimal example demonstrates how text is ordinarily positioned with annotate() : library(ggplot2) p <- ggplot(mtcars, aes(mpg, wt)) + geom_point() p + annotate("text", x = 30, y = 4.5, label = "hello") I would like to achieve the same effect, but instead of specifying x and y in native coordinates, I would like to specify them