Data visualization with SAS programming

Scatter plot matrix size restraint

Reply
Occasional Contributor
Posts: 10

Scatter plot matrix size restraint

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?

SAS Super FREQ
Posts: 1,047

Re: Scatter plot matrix size restraint

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

 

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

 

Hope this helps!

Dan

Occasional Contributor
Posts: 10

Re: Scatter plot matrix size restraint

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

SAS Super FREQ
Posts: 1,047

Re: Scatter plot matrix size restraint

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

 

Thanks!
Dan

SAS Super FREQ
Posts: 1,047

Re: Scatter plot matrix size restraint

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;
Esteemed Advisor
Posts: 5,401

Re: Scatter plot matrix size restraint

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
Occasional Contributor
Posts: 10

Re: Scatter plot matrix size restraint

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.

Ask a Question
Discussion stats
  • 6 replies
  • 128 views
  • 0 likes
  • 3 in conversation