使用proc gmap时从地图中删除空格

问题描述 投票:1回答:1

我在sas中使用以下代码:

goptions reset=all border ;
goptions colors=(yellow steel purple pink red blue cyan orange green gray 
black);

title1 "Congo";
title2 "11 Regions";
footnote j=r "Congo ";


proc gmap map=mapsgfk.dr_congo data=mapsgfk.dr_congo all density=6;
 id id1;  
 choro id1/discrete;run;
quit;

它会生成以下地图:enter image description here

如何删除某些区域内的空白区域?

sas
1个回答
3
投票

地图数据在ID级别被分段。 ID1值是ID的截断。 “空白空间”是由于某个段与其不属于的ID相关联。尝试:

proc gmap 
  map=mapsgfk.dr_congo data=mapsgfk.dr_congo all density=6
;

  * simpler statements per DCR comment, removed format;
  id id;
  choro id1 / discrete;
run;
quit;

我相信可能仍然存在一些关于用颜色绘制湖泊的问题。

© www.soinside.com 2019 - 2024. All rights reserved.