Data visualization with SAS programming

sgpanel y-axis values

Reply
Regular Contributor
Posts: 195

sgpanel y-axis values

How do I change the y-axis values?
I would like to have y-axis values ranging from 0-14 by 2 for "count".

proc sgpanel data=x;
panelby bu / spacing=5 novarname;
vline ydoi / response=count datalabel;
run;

Thank you.
SAS Super FREQ
Posts: 8,720

Re: sgpanel y-axis values

Hi:
Check out the ROWAXIS (Y axis) and COLAXIS (X axis) statements available with SGPANEL:
http://support.sas.com/documentation/cdl/en/grstatproc/62603/HTML/default/viewer.htm#panelaxis-stmt....

cynthia
SAS Super FREQ
Posts: 890

Re: sgpanel y-axis values

Add this line to your SGPANEL somewhere after the PANELBY statement:

ROWAXIS values=(0 to 14 by 2);

-- Dan
Ask a Question
Discussion stats
  • 2 replies
  • 162 views
  • 0 likes
  • 3 in conversation