Previous Page | Next Page

The GRADAR Procedure

Example 7: Creating a Windrose Chart


Procedure features:

NOFRAME

SPEED=

SUMVAR=

WINDROSE

Sample library member: GRRWNDRS

[untitled graphic]

The windrose chart is named for charts of wind speed and direction. Windrose charts are a type of histogram which are useful when the extreme values of the histogram's midpoint variable are related. Typical applications include histograms involving direction, clock time, or other cyclical values.

goptions reset=all border;

data wind;
   input Direction $ Speed $ Percent @@;
datalines;
N    1-9  1.7 N  10-19 1.0 NE   1-9  1.4
NE  10-19  .8 E    1-9 2.4 E   10-19 1.4
SE   1-9  1.2 SE 10-19  .4 S    1-9  2.7
S   10-19 1.6 SW   1-9 3.7 SW  10-19 3.2
W    1-9  3.1 W  10-19 3.4 NW   1-9  2.1
NW  10-19 1.7
run;

proc gradar data=wind;
    chart direction / sumvar=percent
       windrose
       speed=speed
       noframe;
run;
quit;

Previous Page | Next Page | Top of Page