BookmarkSubscribeRSS Feed
kcracknell
Calcite | Level 5

I am trying to create 2 graphs within a panel of the same series of data, where 1 is a subset of the other. Basically I want to create an overall and zoomed in view of the data. My goal is to have 1 graph's x-axis be a month and the other graph's x-axis be a year. Below is a graph that I have gotten as I want it with the exception that the axis are both on a year's scale. I would like the top graph to limit the data being graphed to where the data exists. Any suggestions for how to control the axis or create the graphs I am looking for would be appreciated.

 

graph.jpg

1 REPLY 1
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Within proc template you can set the template up as gridded layout, see the example in this document:

http://www2.sas.com/proceedings/sugi31/262-31.pdf

Shows exactly what you want.  I would also bookmark this website:

https://blogs.sas.com/content/graphicallyspeaking/

As it is an invaluable graph resource with code.

 

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 1 reply
  • 579 views
  • 0 likes
  • 2 in conversation