Date: Fri, 7 Nov 2008 09:07:08 -0500
Reply-To: "Bross, Dean S" <dean.bross@VA.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Bross, Dean S" <dean.bross@VA.GOV>
Subject: Re: SAS graph How to align two graphs, same data
Content-Type: text/plain; charset="us-ascii"
It is possible that the ORIGIN option on the AXIS statement may help
you solve this problem.
I have never tried this so I can't be more specific.
From: email@example.com [mailto:firstname.lastname@example.org]
On Behalf Of Red Eagle
Sent: Thursday, November 06, 2008 7:23 PM
Subject: SAS graph How to align two graphs, same data
Imagine are 2 simple SAS graphs which share the exact same horizontal
One chart is a line graph the other is a vertical bar chart.
The output goes into one ODS html file and the charts show one above the
but with too much space between them, sadly. That too is a problem.
more important question is, is it possible to line up the charts such
horizontal axis on each graph is aligned when one is displayed above the
They do display one above the other, but not lined up. It seems they are
centered separately. I tried Proc Template and it removes the mouse
They are created using Device=Java to meet the need for showing values
mouse is moved over them. I set xpixels=1000 and ypixels600 for the line
and changed the ypixels for the bar chart to 200.
The line graph has vertical lines, every 12 points. The bar chart has
because it has proven so far to be impossible because of data grouping,
'group'. Well, now I wonder if it might work if the line chart also had
vertical lines. Does anyone know.
Any suggestions appreciated.
Thanks in advance!