Here is my plot:
If you look to the right y axis, you see that the text has been cut due to the margin. The textgrobs on the right side y axis are annotation_custom's. Is there some way to automatically adjust the margin to fit both the plot and all the textgrobs?