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
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.
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.
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.
Thank you, Sanjay and DanH. I used SGPLOT and BY combination and worked perfectly.
Appreciate your time and support.
Kindest regards
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.