Previous Page | Next Page

The G3D Procedure

Example 6: Generating a Scatter Plot with Modified Shapes and a Grid


Procedure features:

Scatter statement

COLOR=

GRID

NONEEDLE

SHAPE=

DATA Step

Sample library member: GTDSHAPB

[Scatter Plot with Grid Noneedles]

This scatter plot modifies the results of measuring the petal length, petal width, and sepal length for the flowers of three species of irises by:

 Note about code
goptions reset=all border;
 Note about code
title1 "Iris Species Classification";
title2 "Physical Measurement";
footnote1 j=r f="Albany AMT/it" "Source: Fisher (1936) Iris Data";
 Note about code
data=iris;
   set sashelp.iris;
   length color shape $8.;
   if species="Setosa" then do; shape="club"; color="blue"; end 
   if species="Versicolor" then do; shape="diamond"; color="red"; end;
   if species="Virginica" then do; shape="spade"; color="green"; end'
run;
 Note about code
proc g3d data=iris;
    scatter PetalLength*PetalWidth=SepalLength/
      color=color
      shape=shape
      noneedle
      grid;
run;
quit;

Previous Page | Next Page | Top of Page