Click here to see the SAS code.

This example is similar to the floorplan example on democd1.

As in that example, this floorplan 'map' is done with sas/graph 'proc gmap'.

For each floor in the Alexander International dorm at NC State University
I created a sas/graph map data set, where the 'id' for each area is the
room number, and then I created 4 obsns for each room (each containing
the x/y coordinate for the 4 corners of the room).

In my 'draw.sas' job, I have a macro that will draw a separate map for 
each of the 3 floor during a given year/semester.  I save the 'gseg' graphics
output for each of the 3 floors (using the name= option on gmap), and then
later I use 'proc greplay' to display the 3 floors on the same page.

The neatest "trick" here is that I create a custom greplay template,
with 3 'holes' to replay the graphs into - and these 3 holes are not
rectangular/square ... rather they are slightly smaller along the 
top (back) edge than the bottom (front) edge.  This is what gives
the 3 floors a stacked/3d look :)

Back to Samples Index