I have multiple ggplots, currently they have different gradient legends. I want to use the grid extra package to create a plot containing all plots such as in Add a common Legend for combined ggplots
However, that solution applies to grouped discrete data. Is there a way to make this apply to my gradient legend.