![]() Chapter Contents |
![]() Previous |
![]() Next |
| The G3D Procedure |
| Procedure features: |
| |||||||||
| Other features: |
| |||||||||
| Data set: | REFLIB.IRIS | |||||||||
| Sample library member: | GR29N05 |
This program modifies that shown in Generating a Simple Scatter Plot to use shape symbols and color to distinguish information for various iris species. It also uses NOTE statements to simulate a plot legend.
| | libname reflib 'SAS-data-library';
goptions reset=global gunit=pct border cback=white
colors=(black blue green red)
ftext=swiss ftitle=swissb htitle=6 htext=4; |
| | proc g3d data=reflib.iris2;
scatter petallen*petalwid=sepallen
/ color=colorval
shape=shapeval; |
| | note;
note j=r 'Species: ' c=green 'Virginica '
j=r c=red 'Versicolor '
j=r c=blue 'Setosa ';
run; |
| | title3; footnote1 j=l ' Source: Fisher (1936) Iris Data'; footnote2 j=r 'GR29N05(b) '; |
| | proc g3d data=reflib.iris2;
scatter petallen*petalwid=sepallen
/ noneedle
grid
color=colorval
shape=shapeval; |
| | label petallen='Petal Length'
petalwid='Petal Width'
sepallen='Sepal Length';
run;
quit; |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.