I am a beginner in ggplot2
. So, I apologize if this question sounds too basic. I\'d appreciate any guidance. I\'ve spent 4 hours on this and looked at this SO t
You can also achieve this by layering multiple plots, using the align_plots
and ggdraw
functions in cowplot
. This is the solution I used for putting a scatterpie (discrete colour scale) onto a raster (continuous colour scale). See the vignette in the following link.
https://www.rdocumentation.org/packages/cowplot/versions/0.9.2/topics/align_plots