FOCUS AREAS

Graphics

Dot Plot
Dot Plot
Base SAS: ODS Graphics Procedures: SGPLOT

/* Open the LISTING destination and assign the SEASIDE style to the graph */ 
ods listing style=seaside;
ods graphics / width=5in height=2.81in;
title 'Horsepower by Type';
/* Run PROC SGPLOT on data SASHELP.CARS, selecting for sedans, sports cars, and SUVs */
proc sgplot data=sashelp.cars;
  /* generate a dot plot that shows horsepower by vehicle type */
  dot type / response=horsepower limits=both stat=mean 
    markerattrs=(symbol=circlefilled size=9); 
    xaxis grid;
    yaxis display=(nolabel) offsetmin=0.1;

    /* position the legend inside the bottom-right corner of the plot area */
    keylegend / location=inside position=topright across=1;
run;