G3D procedure

Proc G3D produces three dimensional graphs of the values of variables specify in PLOT or SCATTER statements. A three dimensional surface graph is produced for the three variables in a PLOT statement. A three dimensional scatter graph is produced for the three variables that are required in a SCATTER statement. Size, shape, and color variables for the scatter graph can also be specified. Format:
TITLE statements;
FOOTNOTE statements;
NOTE statements;
PROC G3D DATA=SASdataset
	GOUT = graphicscatalog         
	ANNOTATE = SASdataset ;
	gplot_statement(s);
RUN;

The associated statements:

     PLOT    yvar * xvar = zvar / options;
     SCATTER yvar * xvar = zvar / options;
     BY variables;

e.g.,

PROC G3D DATA=THEDATA GOUT=THECAT;
   PLOT  y * x = z / GRID SIDE
                     CTOP=BLUE CBOTTOM=YELLOW 
                     CTEXT=BLACK CAXIS=RED;
   SCAT y2 * x = z / SIZE=.3 SHAPE=BALLOON COLOR='GREEN';

PLOT statement options

CTEXT = color
Specifies the color used to print text in the plot (default is the first color define in the GOPTION COLORS=...)

CAXIS = color
Specifies the color used to draw the axis of the plot (default is the 2nd color defined in the GOPTION COLORS=...)

CTOP = color
Specifies the color used to draw the top surface of the 3D plot (default is the 3rd color defined in the GOPTION COLORS=...)

CBOTTOM = color
Specifies the color used to draw the bottom surface of the 3D plot (default is the 3rd color defined in GOPTION COLORS=...) tilt the picture about the y axis (default = 70 deg.)

TILT = angle
TILT = ang1 ang2 ...
TILT = angle1 TO angle2 BY increment
Produces a series of plots, tilting the picture ang1, ang2 ... degrees, or from angle1 to angle2 in steps of increment.

ROTATE = angle
Rotates the picture about the z axis (default = 70 deg.)

ROTATE = ang1 ang2 ...
ROTATE =angle1 TO angle2 BY increment
Produces a series of plots, rotating the picture about the z axis ang1, ang2 ... degrees, or from angle1 to angle2 in steps of increment.

XYTYPE = 1, 2 or 3
Specifies the pattern used to draw the plot:
1:
lines parallel to the x axis are drawn
2:
lines parallel to the y axis are drawn
3:
both sets of lines are drawn (default)

XTICKNUM = number
number of tickmarks to placed on the axes. Similarly for YTICKNUM =number and ZTICKNUM = number. The default is 4.

ZMIN = number
Specifies the minimum value of the Z variable

ZMAX = number

Specifies the maximum value of the Z variable

GRID
Draws grid lines at each tick mark on all axes

SIDE
Produces a side wall for a surface graph

NOAXES
Requests that axes and axis labels not be printed

NOLABEL
Requests that ticks labels and axis labels not be printed

ANNOTATE = SASdataset
Specifies input data for graphic annotation

DESCRIPTION = 'string'
String (up to 40 char.) for GREPLAY description field

NAME = 'string'
String (up to 8 char.) for GREPLAY name field in master menu

SCATTER statement options

Most options described in the PLOT statement options are available (e.g. CTOP, CBOTTOM, XYTYPE, SIDE are not accessible in SCATTER). The other options that can be requested are:

SHAPE = shape
Specifies which shapes to use in the scatter graph. The valid shapevar are: CUBE, CYLINDER, PILLAR, BALLOON, STAR, PRISM, HEART, CLUB, DIAMOND, SPADE, CROSS, FLAG, SQUARE, POINT and PYRAMID (default)

SIZE = value
Specifies the size of the shapes drawn (default value=1.0)

COLOR = colorvariable
Specifies the color of the shapes drawn

NONEEDLE
Specifies that the string connecting the shape to the xy plane not be drawn.

Prepared by Michael Friendly
Email<friendly@yorku.ca>
Last Updated:Friday, July 19, 1995

[Previous] Previous Document. [Back]Syntax Summary Menu.