BookmarkSubscribeRSS Feed
wcw
Calcite | Level 5 wcw
Calcite | Level 5

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

4 REPLIES 4
Jay54
Meteorite | Level 14

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.

wcw
Calcite | Level 5 wcw
Calcite | Level 5

ok, thank you Sanjay

Reeza
Super User

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


 

wcw
Calcite | Level 5 wcw
Calcite | Level 5

great, thank you Reeza

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
  • 4 replies
  • 902 views
  • 0 likes
  • 3 in conversation