FOCUS AREAS

Graphics

Mean MSRP for Luxury Sedans by Make and Origin
Base SAS: ODS Graphics Procedure: SGPANEL

%let gpath='.';
%let dpi=100;

ods html close;
ods listing style=analysis gpath=&gpath image_dpi=&dpi;

data LuxurySedans;
  set sashelp.cars(where=(type = 'Sedan' and msrp > 40000));
  if make not in ('Saab', 'Volvo', 'Audi');
  if make='Mercedes-Benz' then make='Mercedes Benz';
  if make='Volkswagen' then make='Volks Wagen';
  run;

ods graphics / reset width=5in height=3.75in  imagename="ProportionalPanel" ;
title 'Mean MSRP for Luxury Sedans by Make and Origin';
footnote j=l h=0.9  "This graph uses proportional, sort and axis value split options and Insets";
proc sgpanel data=LuxurySedans;
where type = 'Sedan' and msrp > 40000;
panelby origin / proportional uniscale=row novarname layout=columnlattice 
                 onepanel sort=ascmean noheader;
vbar make / response=msrp dataskin=gloss stat=mean group=origin datalabel 
     categoryorder=respasc transparency=0.2;
inset origin / nolabel position=top;
colaxis display=(nolabel) valueattrs=(size=7);
rowaxis valueattrs=(size=7) display=(nolabel) offsetmax=0.15;
run;

title;
footnote;