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

Hi I am making comparative histogram plots in proc univariate with a normal curve.  I would like to suppress the parameters like below, which is curved by red lines. Any ideas how to manage that? Thanks!!

 

 

 WechatIMG3.jpeg

1 ACCEPTED SOLUTION

Accepted Solutions
PeterClemmensen
Tourmaline | Level 20

Use NOCURVELEGEND Option like in the example below.

 

ods select histogram;
proc univariate data=sashelp.cars;
   histogram mpg_city / normal nocurvelegend;
run;

View solution in original post

7 REPLIES 7
PeterClemmensen
Tourmaline | Level 20

Use NOCURVELEGEND Option like in the example below.

 

ods select histogram;
proc univariate data=sashelp.cars;
   histogram mpg_city / normal nocurvelegend;
run;
madelinezzz
Calcite | Level 5
Yes the nocurvelegend option works! Thank you so much!
PGStats
Opal | Level 21

Specify option NORMAL(NOPRINT) on the HISTOGRAM statement.

PG
PeterClemmensen
Tourmaline | Level 20

@PGStats, I believe the normal(noprint) option will suppress the creation of tables that summarize the overlaid curve and not the creation of the legend in the red circle in the actual histogram.

Ksharp
Super User
proc sgplot data=sashelp.heart noautolegend;
histogram weight ;
density weight/type=normal;
run;

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 7 replies
  • 2035 views
  • 4 likes
  • 5 in conversation