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;
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!
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.