Data visualization with SAS programming

proc sgplot top/bottom graphs using common x-axis

Reply
Occasional Contributor wcw
Occasional Contributor
Posts: 17

proc sgplot top/bottom graphs using common x-axis

I'm using proc sgplot (v9.4) to create box/scatter plots and wish to create a separate companion bar (or line) graph below using the same x-axis but using frequencies along the y-axis to produce a single figure. I'm inserting an example of what I want to do. Can someone suggest a way to do this? Thanks.

 

top_bottom.JPG

SAS Super FREQ
Posts: 1,289

Re: proc sgplot top/bottom graphs using common x-axis

[ Edited ]

The best way to do this is using GTL.  See this paper to get started.  

http://support.sas.com/rnd/datavisualization/papers/sgf2014/096-Matange_final.pdf

See "Multi-Cell layouts" starting page 9.

Occasional Contributor wcw
Occasional Contributor
Posts: 17

Re: proc sgplot top/bottom graphs using common x-axis

Posted in reply to Sanjay_SAS

ok, thank you Sanjay

Super User
Posts: 24,010

Re: proc sgplot top/bottom graphs using common x-axis

GTL and PROC template can do this. 

 

See page 9 here, it’s not the exact same but it shows you the idea. 

http://support.sas.com/resources/papers/proceedings14/2342-2014.pdf

 


wcw wrote:

I'm using proc sgplot (v9.4) to create box/scatter plots and wish to create a separate companion bar (or line) graph below using the same x-axis but using frequencies along the y-axis to produce a single figure. I'm inserting an example of what I want to do. Can someone suggest a way to do this? Thanks.

 

top_bottom.JPG


 

Occasional Contributor wcw
Occasional Contributor
Posts: 17

Re: proc sgplot top/bottom graphs using common x-axis

great, thank you Reeza

Ask a Question
Discussion stats
  • 4 replies
  • 124 views
  • 0 likes
  • 3 in conversation