Procedure features: |
STAR statement options:
|
DISCRETE |
|
FILL= |
|
NOCONNECT |
|
NOHEADING |
|
SUMVAR= | |
|
Other features: |
GOPTIONS statement option:
|
|
Sample library
member: |
GCHDSCRT
|
This
example produces two star charts that show the
total number of parts that were rejected each month for a year. The STAR statement
uses the DISCRETE option so that each unique value of the numeric variable
DATE is a separate midpoint and has a separate spine. Each slice displays
the formatted midpoint value and the chart statistic. Specifying FILL=S rotates
the solid pattern through all the colors in the style's list of colors as
many times as necessary to provide patterns for all the slices.
The second chart uses the NOCONNECT option so that the
chart uses spines instead of
slices.
|
goptions reset=all border; |
|
data rejects;
informat date date9.;
input site $ date badparts;
datalines;
Sydney 01JAN1997 8
Sydney 01FEB1997 11
Sydney 28JUN1997 13
Sydney 31OCT1997 6
Paris 11APR1997 12
Paris 04MAY1997 12
Paris 30AUG1997 14
Paris 01DEC1997 7
Atlanta 15MAR1997 7
Atlanta 18JUL1997 12
Atlanta 03SEP1997 10
Atlanta 12NOV1997 9
; |
|
title "Rejected Parts";
footnote j=r "GCHDSCRT(a) "; |
|
proc gchart data=rejects;
format date worddate3.;
star date / discrete
sumvar=badparts
noheading
fill=s;
run; |
|
footnote j=r "GCHDSCRT(b) "; |
|
star date / discrete
sumvar=badparts
noheading
noconnect;
run;
quit; |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.