Legends for multiple fills in ggplot

前端 未结 3 1682
梦谈多话
梦谈多话 2020-12-09 19:47

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

3条回答
  •  失恋的感觉
    2020-12-09 20:10

    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

提交回复
热议问题