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 !

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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