0

I am annotating a plot made with ggplot with annotate() as follows:

annotate("text", x = 1, y = 2,label = "TEXT")

When I have multiple annotations with different lengths it is difficult to keep them left-aligned for example, as the x and y coordinates refer to the middle of the string. Is there a way to have the x and y coordinates refer to the left-hand side of the string?

justinian482
  • 845
  • 2
  • 10
  • 18

1 Answers1

0

Thanks to teunbrand :

annotate("text", x = 1, y = 2, hjust = 0 ,label = "TEXT")
justinian482
  • 845
  • 2
  • 10
  • 18