Lchiffon / REmap

create a map by R
255 stars 128 forks source link

regionColor cannot work in REmapH, why and how to deal with it? #42

Open higackrmb opened 5 years ago

higackrmb commented 5 years ago

i want to plot a heatmap with REmapH. i set the regionColor was white as below.

`#install.packages("devtools")

devtools::install_github("Lchiffon/REmap")

library(devtools) library(REmap)

options(remap.js.web=T)

读取数据(通过inport dataset(excel)导入)

head(mydata_heatmap)

str(mydata_heatmap)

attributes(mydata_heatmap)

df = as.data.frame(mydata_heatmap)

map_out<-remapH(data=df, #效果如下图 maptype = '四川', theme = get_theme(theme = "", lineColor = "", backgroundColor = "white", #整体背景颜色 titleColor = "black", #标题颜色 borderColor = "grey", #区域边缘颜色

regionColor ='white',#区域颜色

                                labelShow = F, #区域名称是否显示
                                pointShow = T, 
                                pointColor = '',
                                regionColor="White"),
             blurSize = 70,#设置点的模糊程度,越大越模糊
             color = c('blue', 'cyan', 'lime', 'yellow', 'red'),
             minAlpha = 1,#如果统一值小于minAlpha,则rempaH将设置为minAlpha,以确保小数据值也可以在图表上可见
             opacity = 1,#地图的不透明度,默认为1
             title='Sichuan'
      )

plot(map_out)`

but i got a heatmap with black regioncolor (the heatmap was linked below), how to deal with it? ECharts