更改栅格图中的变量标签/传说以离散字符
我刚刚使用栅格数据制作了一个图,该栅格数据由6种不同的土地类型组成,并将其适合多边形向量。我试图将连续比例尺(1-6)上的值更改为每个不同颜色所代表的每个LandType(例如草原,城市等)的名称。我尝试插入休息时间,但是传说中的每个框都包含标签(1-2、2-3、3-4等) 栅格图,其中每个差异颜色代表diff land类型
这是我的代码: rasterxpolygonplotcode
I have just made a plot using raster data that consists of 6 different land types and fit them to polygon vectors. I'm trying to change the values on the continuous scale bar (1-6) to the names of each landtype (e.g. grasslands, urban, etc) which is what each different colour represents. I have tried inserting breaks, however then each box in the legend contains labels (1-2, 2-3, 3-4 etc.)
Raster plot where each diff colour represents diff land type
This is my code:
rasterxpolygonplotcode
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
示例数据
您可以执行的
:或首先将栅格分类
Example data
You can either do:
Or first make the raster categorical