BookmarkSubscribeRSS Feed
Angmar
Obsidian | Level 7

Does SAS cap out at a 5x5 scatter plot matrix? I'm trying to plot 7 variables, but only a 5x5 table comes up. Are there any work arounds?

6 REPLIES 6
DanH_sas
SAS Super FREQ

Try setting the physical size of the graph larger, for example:

 

ods graphics / width=1000px height=1000px;

 

Hope this helps!

Dan

Angmar
Obsidian | Level 7

Thank you, but it just made everything bigger - still have a 5x5 scatter plot matrix

DanH_sas
SAS Super FREQ

Is this SGSCATTER, or a GTL template? Can you share any code?

 

Thanks!
Dan

DanH_sas
SAS Super FREQ

The following produces a 7x7 matrix for me. Try this and see if it works for you:

 

proc sgscatter data=sashelp.cars;
matrix weight cylinders msrp mpg_city mpg_highway horsepower invoice;
run;
PGStats
Opal | Level 21

If your graph is produced with proc corr, you can use options NVAR=ALL | n and NWITH=ALL | n in the plots=matrix(<options>) request to override the maximum of 5 variables per panel.

PG
Angmar
Obsidian | Level 7

Thanks everyone - it was my own mistake. The first subject in my sample was missing a couple of measurements. I ended up specifying the print-out for a subject who had all values for all measurement times.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 6 replies
  • 1487 views
  • 1 like
  • 3 in conversation