Data visualization with SAS programming

SAS Graph - Number of observations per page

Accepted Solution Solved
Reply
Contributor
Posts: 34
Accepted Solution

SAS Graph - Number of observations per page

Hi Graph Gurus!

 

I have a unique situation, where I want to present 10 observations per page in a line graph.

 

Ex: I have 25 observation in a final dataset.  I want to present  1-10 observations in one page and 11-20 observations in a another page and rest all in different page.  

 

I was wondering, could you kindly help me with this.

 

Thanks

 


Accepted Solutions
Solution
‎09-05-2017 02:38 PM
SAS Super FREQ
Posts: 1,139

Re: SAS Graph - Number of observations per page

One way would be to add a new column to your data for page number.  For obs 1-10, set page=1, and so on.  Then, use a SERIES plot with either the SGPANEL procedure, with PANELBY page, or SGPLOT with BY page. 

View solution in original post


All Replies
Solution
‎09-05-2017 02:38 PM
SAS Super FREQ
Posts: 1,139

Re: SAS Graph - Number of observations per page

One way would be to add a new column to your data for page number.  For obs 1-10, set page=1, and so on.  Then, use a SERIES plot with either the SGPANEL procedure, with PANELBY page, or SGPLOT with BY page. 

SAS Super FREQ
Posts: 925

Re: SAS Graph - Number of observations per page

[ Edited ]

And if you use the SGPLOT/BY combination, you can use OPTIONS NOBYLINE to supress the BY-line if you don't care to see it.

Contributor
Posts: 34

Re: SAS Graph - Number of observations per page

[ Edited ]

Thank you, Sanjay and DanH.  I used SGPLOT and BY combination and worked perfectly.

 

Appreciate your time and support.

 

Kindest regards

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 128 views
  • 2 likes
  • 3 in conversation