BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Almighty
Fluorite | Level 6

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Jay54
Meteorite | Level 14

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

3 REPLIES 3
Jay54
Meteorite | Level 14

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. 

DanH_sas
SAS Super FREQ

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.

Almighty
Fluorite | Level 6

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

 

Appreciate your time and support.

 

Kindest regards

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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