Does anyone know if there is a way to specify the position of a map within the graphics output area? By default it's centered, but I need it to be left aligned. To minimize the horizontal size of the graphics output area is not an option, because there are other outputs needed to be placed on the right part.
I've found the system option "nocenter", but it seemed to have no effect on the gmap procedure output...
You can add a blank title statement of a large height, angled to position it on the right-hand side of the map. This will add white-space along the side. Here is a simple example:
title1 angle=-90 height=50pct " ";
proc gmap data=maps.us map=maps.us;
id state;
choro state / levels=1;
run;
Note that you must be using 'gtitles' (which might not be the default in EG and Stored Processes), and it won't work in device=java or activex (I recommend using device=png).
This 'trick' is described in detail, in Example 7 of my book "SAS/Graph: Beyond the Basics" ![]()
You can add a blank title statement of a large height, angled to position it on the right-hand side of the map. This will add white-space along the side. Here is a simple example:
title1 angle=-90 height=50pct " ";
proc gmap data=maps.us map=maps.us;
id state;
choro state / levels=1;
run;
Note that you must be using 'gtitles' (which might not be the default in EG and Stored Processes), and it won't work in device=java or activex (I recommend using device=png).
This 'trick' is described in detail, in Example 7 of my book "SAS/Graph: Beyond the Basics" ![]()
Great! Thanks! ![]()
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.