BookmarkSubscribeRSS Feed
Calcite | Level 5

Hello there!

So sorry, I am re-posting this again because I was unable to send a reply on the other thread.

My problem looks like this:

I have two different datasets (2 different experiments) that are structured as follows:

Dataset 1: mass, height, index, class

               3         5         2.5      A

               5         2         1.5      B

               9         6          2.1     C

               4         5          1.0     A


Dataset 2: mass, height, index, class

                  2        5         7         A

                  6        2         1         B

                  8        4         4         C

                  1        2         1         A


Therefore, in both datasets, there are 3 classes: A, B and C depending on the mass. I would like to compare the effects of index on mass and height (y=index x=(mass height)) in both datasets but with the 4 graphs appearing on the same page for easy visual comparison. How can I acheive this, please? Is it possible to have 2 pairs of graphs having different x-values in one page using sgscatter compare?

Please kindly help me!!! Thank you Dan and Cythia for your replies on the other thread. My output type is html!

Kind regards,


Diamond | Level 26 RW9
Diamond | Level 26

It is very difficult to read your post with all the spacing.  However you want to produce a graph with some data yes, have a look at this blog which has details for every graph I could think of and is a very good resource:



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
  • 1 reply
  • 2 in conversation