I'm working with the following code:
library('colorspace')
blups <- brewer.pal(9, 'BuPu')
geom_tile(aes(lon, lat, fill = predicted_price), alpha = 0.8) + scale_fill_gradientn(colors = blups)
The error msg is:
Check your call of scale_fill_gradientn(). Did you correctly specify the argument colors?
I've tried various combinations of code, and the error msg is always the same.
What's going on?