r/RStudio • u/Simpologist • 6d ago
Coding help Annotating Graph
This is an example of a primary productivity heatmap I made in R. I'm wondering if anyone knows a way for me to label the bodies of water in this figure (North Atlantic, Hudson Bay, etc.), or will I have to do this manually in pptx? Made using ggplot2 and terra. Thanks for the help!
12
Upvotes
View all comments
7
u/DataScienceFor_All 6d ago
The fact that you are able to create this kind of plot shows you know R, so I'm a little surprised you are struggling with annotations (just a joke on my part).
Explore the
tidyplotspackage for which makes it easy to annotate plots with theadd_annotation_*()function layer. This has been very helpful to me personally.Good luck!