How to create irregular color scale in levelplot?

て烟熏妆下的殇ゞ 提交于 2020-03-28 06:47:29

问题


Somebody can help me to create color scale like this picture. I have tried a basic code below, but didn't work well...

chl <- colorRampPalette(c('midnight blue','cyan 4','green 3','yellow','goldenrod 3','tomato 3'))
levelplot(raster_name, col.regions = chl, at=c(0.03, 0.1, 0.4, 2, 10, 30),
           margin=FALSE, ylab='Latitude', xlab='Longitude')

来源:https://stackoverflow.com/questions/60702075/how-to-create-irregular-color-scale-in-levelplot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!