GCONTOUR Procedure

Example 1: Simple Contour Plot

Features:

PLOT statement

Data set: SASHELP.LAKE
Sample library member: GCTLAKE
This simple contour plot displays the various depths of a lake. The dimensions of the lake are plotted on the x and y axes. The z variable is plotted as the third dimension, as levels represented by contour lines. The contour line levels are displayed and labeled in the legend.
Simple Contour Plot

Program

goptions reset=all border;
title "Lake Data";
footnote j=r "GCTLAKE";
proc gcontour data=sashelp.lake;
    plot length*width=depth;
run;
quit;

Program Description

Set the graphics environment. Draw a BORDER around the graphics output area.
goptions reset=all border;
Define titles and footnotes. Add TITLE content. Add FOOTNOTE content and placement.
title "Lake Data";
footnote j=r "GCTLAKE";
Generate contour plot. Generate a simple contour plot using SASHELP.LAKE. Use one PLOT statement to define the grid and the contour lines.
proc gcontour data=sashelp.lake;
    plot length*width=depth;
run;
quit;