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;

SAS Innovate 2025: Call for Content

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 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 7 replies
  • 1181 views
  • 4 likes
  • 5 in conversation