Creating Bar Charts
/****************************************************************/
/* S A S S A M P L E L I B R A R Y */
/* */
/* NAME: GRBAR */
/* TITLE: Creating Bar Charts */
/* PRODUCT: IML */
/* DATA: */
/* */
/* SUPPORT: Rick Wicklin UPDATE: SEP 2013 */
/* REF: */
/* MISC: */
/* */
/****************************************************************/
proc iml;
use Sashelp.Cars where(type ? {"SUV" "Truck" "Sedan"});
read all var {origin type};
close Sashelp.Cars;
title "Bar Chart with Default Properties";
call Bar(origin);
title "Horizontal Bar Chart, group and order categories";
call Bar(origin) type="HBar" group=type groupopt="Cluster"
grid="X" label="Origin";