FOCUS AREAS

Graphics

clustered bar chart with gradient
Base SAS: ODS Graphics Procedure: SGPLOT

/* This program requires SAS 9.4 TS Level 1M2 or later */
%let gpath='.';
%let dpi=100;

ods html close;

ods listing gpath=&gpath image_dpi=&dpi;
ods graphics / reset width=5in height=3.75in imagename='ClusterBarChartGradient';
title "Mileage by Type and Origin";
footnote j=l "Excluding Hybrids";
proc sgplot data=sashelp.cars;
  where type ne "Hybrid";
  vbar type / response=mpg_city group=origin groupdisplay=cluster 
    stat=mean nostatlabel dataskin=pressed filltype=gradient;
  xaxis display=(nolabel);
  yaxis grid;
  run;

title;
footnote;