改变R程序中qtm的颜色方案

时间:2023-02-11 22:48:52

I have R program that creates map in shades of green. No matter what I try, i.e. adding color="red", and tm_fill = "red" but map stays green.

我有R程序,以绿色阴影创建地图。无论我尝试什么,即添加color =“red”和tm_fill =“red”,但地图保持绿色。

Cannot find documentation for qtm that explains how to change color.

找不到解释如何更改颜色的qtm文档。

Please assist.

请协助。

改变R程序中qtm的颜色方案

1 个解决方案

#1


1  

e.g.,

例如。,

library(tmap)
data(Europe)
qtm(Europe, fill = "economy", fill.palette="-Blues")
qtm(Europe, fill = "economy", fill.palette="-Reds")

If you simply enter ?qtm in the R console, you'll see fill.palette in the first example...

如果你只是在R控制台中输入?qtm,你会在第一个例子中看到fill.palette ...

#1


1  

e.g.,

例如。,

library(tmap)
data(Europe)
qtm(Europe, fill = "economy", fill.palette="-Blues")
qtm(Europe, fill = "economy", fill.palette="-Reds")

If you simply enter ?qtm in the R console, you'll see fill.palette in the first example...

如果你只是在R控制台中输入?qtm,你会在第一个例子中看到fill.palette ...