Data visualization with SAS programming

sgpanel (panelby) stack on top instead of side by side?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 8
Accepted Solution

sgpanel (panelby) stack on top instead of side by side?

I'm a beginning SAS user and want to know if there a way in proc sgpanel to have the "panelby" stack the graphs on top of each other instead of side by side?  If not, is there another way to do this?  Thanks!


Accepted Solutions
Solution
‎06-18-2013 03:29 PM
SAS Super FREQ
Posts: 1,044

Re: sgpanel (panelby) stack on top instead of side by side?

PANELBY statement has a LAYOUT option.  Use LAYOUT=ROWLATTICE..

View solution in original post


All Replies
Solution
‎06-18-2013 03:29 PM
SAS Super FREQ
Posts: 1,044

Re: sgpanel (panelby) stack on top instead of side by side?

PANELBY statement has a LAYOUT option.  Use LAYOUT=ROWLATTICE..

Occasional Contributor
Posts: 8

Re: sgpanel (panelby) stack on top instead of side by side?

Thanks so much!  Do you also know how to make less tick marks on the x axis? I have too many dates listed and they are all overlapping.  Or if there is a way to make the graph larger, that works too.  Thanks again!

SAS Super FREQ
Posts: 1,044

Re: sgpanel (panelby) stack on top instead of side by side?

You can set graph size using the WIDTH and HEIGHT option on the ODS Graphics statement.  You can adjust the tick by setting VALUES on the ROWAXIS or COLUMNAXIS statements.

Grand Advisor
Posts: 9,748

Re: sgpanel (panelby) stack on top instead of side by side?

Also the Fitpolicy option on the axis statements may be of use.

Post a Question
Discussion Stats
  • 4 replies
  • 307 views
  • 7 likes
  • 3 in conversation