LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2005, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 18 May 2005 00:13:24 -0700
Reply-To:     chrysrobyn <chrysrobyn@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         chrysrobyn <chrysrobyn@GMAIL.COM>
Organization: http://groups.google.com
Subject:      proc greplay question
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset="iso-8859-1"

Is there a clean way to line up stacked charts?

I would like to stack a pair of line charts (built with proc gplot) and a pair of bar charts (build with proc gchart and vbar). After hunting through the archives I decided the best method was to build all the appropriate charts and then proc greplay them together. This is almost what I wanted. I can individually use offset and origin to move the individual plots around the field, but when I proc greplay them, they lose origin axis customizations (offset appears to stay).

My problem boils down to alignment. In the x direction, my bar chart's center point on the first bar is half the width in from the left; the line plot is similarly defined, but the bar and line symbol are differently sized. Additionally, there appears to be some hard to explain empty space between the Y label and the left side in bar charts, whereas there is little such space in line charts.

Is there a nice way to accomplish my alignment goals? Ideally I would be able to leave all the stacked graphs' axes present so they can be individually viewed. A complication is the number of x axis variables is itself variable, so I am wary of hard-coding a value because the bar chart's bars change in width.


Back to: Top of message | Previous page | Main SAS-L page