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

Hello !

Here is my issue : i need to perform a ACM with a proc corresp. On the correlation plot, SAS automaticcaly display both the variables AND the observations. I'd like too chose to display only the variables, or only some of them, or only certain observations. Is there a way to do this ?

 

Thank you by advance for your reply  🙂

 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Generic response for creating graphs with different appearance than direct options listed:

Use ODS OUTPUT to direct the data used by the graph to an output data set.

Modify if needed

Plot with SGPLOT.

 

The ODS output would look something like:

ODS output plotname = plotdataset;

where plotname is the name of plot and plotdataset is the name of the data set you want to create. This can go either immediately before the Procedure call or as part of the procedure (before run);

 

Since each of these plot data sets tend to look a bit different then the modify with a data set step is often needed to get something you need.

View solution in original post

3 REPLIES 3
PaigeMiller
Diamond | Level 26

I don't think so.

--
Paige Miller
ballardw
Super User

Generic response for creating graphs with different appearance than direct options listed:

Use ODS OUTPUT to direct the data used by the graph to an output data set.

Modify if needed

Plot with SGPLOT.

 

The ODS output would look something like:

ODS output plotname = plotdataset;

where plotname is the name of plot and plotdataset is the name of the data set you want to create. This can go either immediately before the Procedure call or as part of the procedure (before run);

 

Since each of these plot data sets tend to look a bit different then the modify with a data set step is often needed to get something you need.

Mathis1
Quartz | Level 8
Thank you ! I succeeded with the SGPLOT only !

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