Desktop productivity for business analysts and programmers

Proc gmap

Reply
New Contributor
Posts: 3

Proc gmap

[ Edited ]

Hi guys,

 

i am wondering how can i change in a gmap procedure the way my regions show their values. I have a dataset which containts of 3 values: an identification variable (numeric), name of the identification variable(text) and the value (numeric). In the gmap procedure I use the id variable to create the map, but i would like to see the text variable when i put my mouse on a particular region. How can it be achieved? Please find the screen shot and the dataset attached. Below the code:

 

goptions reset=all;
data poland;
set maps.poland;
run;

data poland2;
set maps.poland2;
run;

data poland_woj;
merge poland poland2;
by id;
run;

proc sort data=poland_woj;
by wojid id;
run;

proc gremove data=poland_woj out=woj;
by wojid;
id id;
run;

proc import datafile="C:\Users\Wojtek\Downloads\ROLN_3179_XTAB_20170701180026.xlsx"
out=rolnictwo dbms=xlsx replace;
sheet="tablica";
run;

title 'Suma powierzchni użytków rolnych na przekroju województw';
proc gmap data=rolnictwo map=woj all ;
id wojid;
choro powierzchnia / statistic=sum discrete ;
run;
footnote 'Źródło: Opracowanie własne.';
quit;
title;

Ask a Question
Discussion stats
  • 0 replies
  • 91 views
  • 0 likes
  • 1 in conversation