I've encountered this and similar questions (Separate palettes for facets in ggplot facet_grid and Changing colour schemes between facets) while trying to find a solution for a very similar task. However, their solutions didn't quite work in my case. I ended up finding a solution using {ggh4x
}.
You can use ggh4x
's functions `scale_*_multi()
` to set different colour/fill scales for each facet -- including gradients -- by setting each facet as its own named 'aes
'.
I am sharing a very general answer, I know, but I bet this may be helpful for many others out there...
(PS - I'm not a frequent user of StackOverflow, so please advise me if I need to put this 'answer' as a 'comment' somewhere... sorry for any inconveniences)