The plot request plots Density on the vertical axis, CrimeRate on the
horizontal axis, and uses the first letter of the value of State as the plotting
symbol. This makes it easier to match the symbol with its label. The label
variable specification (
$ state
) in the plot request labels each point with
the corresponding state name. BOX draws a box around the plot. LIST= lists
the labels that have penalties greater than or equal to 1. HAXIS= and VAXIS=
specify increments only. PROC PLOT uses the data to determine the range for
the axes.
proc plot data=census;
plot density*crimerate=state $ state / box list=1
haxis=by 1000 vaxis=by 250;
title 'A Plot of Population Density and Crime Rates';
run;