Hello there,
I have been drawing some cool maps using PROC GMAP. However, because the map is more detailed to suburbs, it's quiet difficult to make out towns.
I would have loved to just be able to increase or decrease the map size to any scale to fit the view I want. Am thinking there should be an easy way out. I was using width and height in ODS Graphics but I see no effect. Any help?
The Code am using:
/*Filter for the City of Johannesburg*/
DATA SP_SAmaps;
SET userlib2.SP_SAmaps(where=(DC_MDB_C='JHB'));
Run;
/*Draw-up the MAP*/
ods graphics on /
width=300in
height=300in
imagefmt=gif
imagemap=on
imagename="SA_Map"
border=off;
title1 ls=1.5 "City of Johannesburg";
pattern1 v=s c=white ;
PROC GMAP map=SP_SAmaps data=SP_SAmaps;
id SP_NAME;
choro MP_NAME / discrete NOLEGEND coutline=gray88 ;
RUN;
ods graphics OFF;
Regards,
There are several ways. I'm not sure what you are looking for.
First, GOPTION xpixels/ypixels can be used to make the map bigger:
goption xpixels=1000 ypixels=1000;
Next, you can use Proc GPROJECT to "clip" the map in just one area or part of Johannesburg.
So, you are not showing the entire map, but only part of it.
http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#gr23n03-ex.htm
And finally, you can use the JAVA driver to make a map that you can interactively pan and zoom in on.
Go to http://support.sas.com/rnd/papers/#2013 and look for the paper and examples Google-like Maps in SAS.
There are several ways. I'm not sure what you are looking for.
First, GOPTION xpixels/ypixels can be used to make the map bigger:
goption xpixels=1000 ypixels=1000;
Next, you can use Proc GPROJECT to "clip" the map in just one area or part of Johannesburg.
So, you are not showing the entire map, but only part of it.
http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#gr23n03-ex.htm
And finally, you can use the JAVA driver to make a map that you can interactively pan and zoom in on.
Go to http://support.sas.com/rnd/papers/#2013 and look for the paper and examples Google-like Maps in SAS.
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.