proc sgpanel data = work2; format y1_race_eth race.; title "Distribution of VT by Race"; panelby y1_race_eth / columns = 3; histogram y1pi_VT; density y1pi_VT / type =normal; run;
Hi, I have a problem building plot using sas.
When adding "density y1pi_VT / type =normal" into the codes, the scale of Y changed. How can I keep the yaxis unchanged?
And why would the percent turns into 800 in scale?
Appreciated!
PLOTS WITHOUT KERNEL
Try adding option SCALE=PROPORTION to the histogram statement.
The proportion option cannot keep the yaxis unchanged. Seems like the codes below works. Thanks anyway.
rowaxis integer min=0 max=100 ;
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!
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.