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!!
Use NOCURVELEGEND Option like in the example below.
ods select histogram;
proc univariate data=sashelp.cars;
histogram mpg_city / normal nocurvelegend;
run;
HANGING
Use NOCURVELEGEND Option like in the example below.
ods select histogram;
proc univariate data=sashelp.cars;
histogram mpg_city / normal nocurvelegend;
run;
Anytime, glad to help 🙂
Specify option NORMAL(NOPRINT) on the HISTOGRAM statement.
@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.
proc sgplot data=sashelp.heart noautolegend;
histogram weight ;
density weight/type=normal;
run;
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.