Adding graphic elements to ggplots

Hi! I’m trying to add a line with an arrow and some text around it to an existing ggplot that I made in ggpubr (if that matters). The arrow wouldn’t be based on any data and can be flat (no angle needed). Specifically, I’m looking to add an interpretive aid for a variable that isn’t intuitive to plot, but is standard so I don’t want to manipulate it.

Any ideas? I realize it might be easier to make the plot in R and manipulate it in adobe illustrator.

Thank you!

Have a look at https://ggplot2.tidyverse.org/reference/annotate.html . Maybe this helps you out.

Edit: and more specific https://ggplot2-book.org/annotations.html#custom-annotations

1 Like

Perfect! Thank you! Much appreciated.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.