BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
iznally
Calcite | Level 5

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...

1 ACCEPTED SOLUTION

Accepted Solutions
GraphGuy
Meteorite | Level 14

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" Smiley Happy

Space Around Graph

http://robslink.com/SAS/book/example07_info.htm

View solution in original post

2 REPLIES 2
GraphGuy
Meteorite | Level 14

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" Smiley Happy

Space Around Graph

http://robslink.com/SAS/book/example07_info.htm

iznally
Calcite | Level 5

Great! Thanks! Smiley Happy

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 759 views
  • 0 likes
  • 2 in conversation