Sunday, February 11, 2007

make a good looking histogram

More often than would be preferable, it becomes necessary to present data graphically. For a fancy ODS plot of a histogram, try the following:

ods pdf file ="%sysfunc (reverse(%sysfunc(substr(%sysfunc(reverse(%sysfunc(reverse(%scan(%sysfunc(reverse(%sysfunc(getoption(sysin)))),1,/))))),5)))).pdf"; goptions reset=global device=gif ftitle=swissb ftext=swissb htitle=2 htext=2; proc univariate data = alldat2 noprint; title "Histogram for pmh variables"; histogram pmh_dur3 pmh_dur4 pmh_dur5 pmh_dur8 drh_use lst_byirt/cfill=ligr normal cframe=liy barwidth=8 cv=black; inset mean std max min;

ods pdf close;

No comments: