BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
gx2144
Calcite | Level 5
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?

Appreciated!

PLOTS WITHOUT KERNEL

 

gx2144_0-1596900689071.png

PLOTS WITH KERNEL

gx2144_1-1596900708250.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Norman21
Lapis Lazuli | Level 10

Try adding the following:

 

rowaxis integer min=0 max=100 ;
Norman.
SAS 9.4 (TS1M6) X64_10PRO WIN 10.0.17763 Workstation

View solution in original post

1 REPLY 1
Norman21
Lapis Lazuli | Level 10

Try adding the following:

 

rowaxis integer min=0 max=100 ;
Norman.
SAS 9.4 (TS1M6) X64_10PRO WIN 10.0.17763 Workstation

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 1 reply
  • 352 views
  • 1 like
  • 2 in conversation