BookmarkSubscribeRSS Feed
Jaco
Calcite | Level 5

Hello there!

Please I have got two sets of data that look like this:

- mass height index class

- mass1 height1 index1 class1

where class or class1 is the group and contains 'small', 'medium' and 'large'.

Now, I would like to compare y=index; y=index1 and x=(mass height) x=(mass1 height1) in group=class and group=class1.

In all, I would like to have 4 graphs in one page (ie index compared with mass/height and index1 compared with mass1/height1, all in one page)

Thank you in advance for taking your time to help me.

Best regards,

Jaco

2 REPLIES 2
Cynthia_sas
Diamond | Level 26

Hi:

  I am having a hard time visualizing your data. Is there anyway you could restate your question using an example that everybody has available, like the SASHELP.IRIS data??? For example, the SPECIES variable in SASHELP.IRIS has 3 values (Setosa Versicolor Virginica), which are the exactly the same as your small, medium or large, but might serve somewhat the same purpose.

  Another alternative is for you to post some of your data, and a DATA step program to create the SAS dataset that you have. That would allow people to play around without guessing what your data looks like. Or you could make some fake data.

cynthia

DanH_sas
SAS Super FREQ

With the given information, is appears as if the best option is to render two panels (two SGSCATTER calls) on the same page. The ODS destinations can control whether multiple outputs are placed on the same page. What output type are you creating? e.g. PDF, RTF, html, etc.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1348 views
  • 0 likes
  • 3 in conversation