FOCUS AREAS

Graphics

Radar Chart
Radar Chart
SAS/GRAPH: PROC GRADAR

/*** To run PROC GRADAR, you must have a SAS/GRAPH license ***/

data cars;
  set sashelp.cars;
  where type='Sedan' and origin='USA';

proc sort;
  by make;

data cars;
  set cars;
  by make;
  length make_model $25;
  make_model=strip(make)||' '||strip(scan(model,1,' '));
  if first.make then output;

data cars;
  set cars;
  mpg=mpg_highway; GasMileage='MPG_HIGHWAY'; output;
  mpg=mpg_city; GasMileage='MPG_CITY'; output;

goptions reset=all device=png hsize=5.21in vsize=2.93in htext=8pt;

/* Open the LISTING destination and assign the LISTING style to the graph */
ods listing style=listing;

title h=12pt 'Mileage by Make and Model';
proc gradar data=cars;
  chart make_model / freq=mpg
                     overlay=GasMileage
                     cstarfill=(red blue)
                     starfill=(solid empty)
                     name='Radar';
run;
quit;