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;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.