Bar Panel
Bar Panel
Base SAS: ODS Graphics Procedure: SGPANEL

/* Open the LISTING destination and assign the LISTING style to the graph */ 
ods listing style=listing;
ods graphics / width=5in height=2.81in;
title 'Mileage by Origin and Type';

/* Run PROC SGPANEL on data SASHELP.CARS, selecting for sedans and sports cars */
proc sgpanel in ('Sedan' 'Sports'))) noautolegend;
  /* panel the graph by vehicle type */
  panelby Type / novarname columns=2 onepanel;
  /*  generate a vertical bar chart that groups by manufacturing region
   *  and shows the average city mileage for each of the regions */
  vbar origin / response=mpg_city stat=mean group=origin;
  rowaxis grid;