Previous Page | Next Page

The GCONTOUR Procedure

Example 3: Specifying Contour Levels


Procedure features: HMINOR, LLEVELS, NAME, NLEVELS, VAXIS, VMINOR
Data Set POLLEN
Sample library member: GCTNLVEL

[untitled graphic]

This contour plot shows the amount of pollen in the air for five work days (x-axis) in a four week series (y-axis). The PLOT statement uses the NLEVELS= option to specify the number of contour levels to plot for the z variable. The NLEVELS= option enables you to specify up to 100 levels in your plot.

 Note about code
goptions reset=all border;
 Note about code
data pollen;
input Week Workdays Pollen @@;
datalines;
1 1 50 1 2 96 1 3 28 1 4 94 1 5 124 2 1 204 2 2 153 2 3 43 2 4 21 2 5 60
3 1 37 3 2 23 3 3 57 3 4 21 3 5 65 4 1 8 4 2 144 4 3 22 4 4 141 4 5 95
;
run;
 Note about code
title1 "The Amount of Pollen Particles in a Cubic Meter of Air";
footnote1 j=r "GCTNLVEL";
 Note about code
axis1 order=(1 to 4 by 1);
 Note about code
proc gcontour data=pollen;
    plot week*workdays=pollen/
       hminor=0
       llevels= 2 20 21 33 25 41
       name="GCTNLVEL"
       nlevels=6
       vaxis=axis1
       vminor=0; 
    run;
 quit;

Previous Page | Next Page | Top of Page