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

When I do PCA analysis the scree plot comes out 5 pages long with a lot of wasted space.

The usual: "ods graphics on / width=4in height=3in" does not seem to have any effect.

Any suggestions to re-scale the scree plot, make it shorter?

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

This minor modification of your code works for me

 

proc factor data=mydata corr plots=scree ev method = principal;

 

--
Paige Miller

View solution in original post

4 REPLIES 4
PaigeMiller
Diamond | Level 26

Show us your SAS code. Please click on the running man icon and then paste the code (as text) into the Window that appears.

--
Paige Miller
Vic3
Fluorite | Level 6
ods graphics on / width=4in height=4in;
proc factor data=mydata corr scree ev method = principal;
var var1 var2 var3 var4 var5 var6 var7 var8;
run;
ods graphics off;

Regardless of width or height the scree plot does not change, prints several pages long.

PaigeMiller
Diamond | Level 26

This minor modification of your code works for me

 

proc factor data=mydata corr plots=scree ev method = principal;

 

--
Paige Miller
Vic3
Fluorite | Level 6
That worked. Thank you!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 931 views
  • 0 likes
  • 2 in conversation