Hello Everybody,
got stuck again on the GMAP statement. I was wondering if there is a pattern definition that will allow a gray filled color area with black lines for a pattern. Following is my code where I have added some patterns experimenting on the four levels I have- but I could not find anything on the internet on how to solve my problem. I am also attaching a jpg (inserted in a word file) of what I get and what I want in a screen shot of a small area of the map.
Appreciate any help, best
Dimitrios
/** code starts here***/
goptions reset=all cback=white border htitle=12pt htext=10pt
display;
footnote3 height=5 angle=90' ';
pattern1 c=LIGGR ;
pattern2 c=brgr;
pattern3 v=m2n45 c=brgr ;
pattern4 v=m2n45 c=LIGGR ;
legend1 label=none shape=bar(4,2)
value=(height=2) across=3 mode=share origin=(45,0);
run;
proc gmap data=ma8 map=mapsgfk.world gout=gseg ;
id idname;
choro potential/ levels=4 coutline=black name='map1a' ;
run;
/** code ends here***/
Like this?
proc catalog c=GSEG kill; run;
goptions reset=all cback=white border ;
pattern1 c=LIGGR repeat=99;
proc gmap data=MAPSGFK.EUROPE map=MAPSGFK.EUROPE gout=GSEG ;
where IDNAME in:('Fran','Ita','Germ','Swi');
id IDNAME;
choro IDNAME / name='map1' ;
run;
pattern1 v=m2n45 c=brgr repeat=99;
proc gmap data=MAPSGFK.EUROPE map=MAPSGFK.EUROPE gout=GSEG ;
where IDNAME in:('Fran','Ita','Germ','Swi');
id IDNAME;
choro IDNAME / name='map2' ;
run;
proc greplay igout =GSEG
tc =SASHELP.TEMPLT
template=WHOLE
nofs;
treplay 1:map1 1:map2;
run;
quit;
Please avoid posting MS Office files.
They carry a risk and many people will not/cannot download them.
Just add the image in the post.
Like this?
proc catalog c=GSEG kill; run;
goptions reset=all cback=white border ;
pattern1 c=LIGGR repeat=99;
proc gmap data=MAPSGFK.EUROPE map=MAPSGFK.EUROPE gout=GSEG ;
where IDNAME in:('Fran','Ita','Germ','Swi');
id IDNAME;
choro IDNAME / name='map1' ;
run;
pattern1 v=m2n45 c=brgr repeat=99;
proc gmap data=MAPSGFK.EUROPE map=MAPSGFK.EUROPE gout=GSEG ;
where IDNAME in:('Fran','Ita','Germ','Swi');
id IDNAME;
choro IDNAME / name='map2' ;
run;
proc greplay igout =GSEG
tc =SASHELP.TEMPLT
template=WHOLE
nofs;
treplay 1:map1 1:map2;
run;
quit;
Excellent!
Thank you very much, now I got to apply it to my data,
Appreciate it,
Best
Dimitrios
Worked fine. Thanks again.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.