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

Hi,

I want to create a two-panel graph using proc sgpanel in SAS 9.4. The y-axis should be the same for the two panels, but I want both x-axis to have different values . Can that be done using SGPANEL?

 

Best regards,

Shaifali

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

Maybe you want this ?

proc sgscatter data=sashelp.class;
compare x=(weight height) y=age;
run;

Calling  @Rick_SAS   for proc template.

View solution in original post

4 REPLIES 4
Ksharp
Super User

Maybe you want this ?

proc sgscatter data=sashelp.class;
compare x=(weight height) y=age;
run;

Calling  @Rick_SAS   for proc template.

sas_user
Calcite | Level 5
Thanks, I tried and it worked. But it seems rowaxis and colaxis statements are not supported by SGSCATTER, how can i assign labels and attributes to axis in this.
Thank you in advance.
Ksharp
Super User
You could search it at support.sas.com to get its documentation.
I rarely use it .
DanH_sas
SAS Super FREQ

On your PANELBY statement, set UNISCALE=ROW to allow the column axis to be independent. You might also want to set LAYOUT=COLUMNLATTICE to ensure that the panel is always built on one row, regardless of the number of classifiers.

 

Hope this helps!

Dan

sas-innovate-2024.png

📢

ANNOUNCEMENT

The early bird rate has been extended! Register by March 18 for just $695 - $100 off the standard rate.

 

Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events. 

 

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