Chapter Contents

Previous

Next
The PLOT Procedure

Example 13: Changing a Default Penalty


Procedure features:
PLOT statement option
PENALTIES=
Data set: CENSUS

This example demonstrates how changing a default penalty affects the placement of labels. The goal is to produce a plot that has labels that do not detract from how the points are scattered.


Program

options nodate pageno=1 linesize=120 pagesize=37;
 Note about code
   proc plot data=census;
      plot density*crimerate=state $ state /



 Note about code
           placement=(h=100 to 10 by alt * s=left right)

 Note about code
           penalties(4)=500  list=0




 Note about code
           haxis=0 to 13000 by 1000 vaxis=by 100;
   title 'A Plot of Population Density and Crime Rates';
   run;


Output
[HTML Output]  [Listing Output]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.