How are graph commands structured?

The overall structure of a graphics command can be seen below, with various
parts coded in different colors or fonts. The section "other_stuff" refers to
things like titles, legends, and captions and as we saw in the dialog boxes
and the commands generated from the dialog boxes they are almost completely
common across all graph types.

. type_of_graph what_to_graph ,
how_it_looks other_stuff

You can see how the sections of a graph command relate to actual commands
by following the coding in the commands below.

. graph box trunk mpg

. histogram mpg

. kdensity mpg

. quantile trunk

. graph twoway scatter mpg weight

or

. twoway scatter mpg weight

or

. scatter mpg weight

. scatter mpg weight , mcolor(red)

. scatter mpg weight , mcolor(red)
title("My Red MPG")

o twoway allows an extension

. twoway plottype what_to_plot , how_it_looks ||
plottype what_to_plot , how_it_looks ||
...
plottype what_to_plot , how_it_looks other_stuff

o What kind of plottypes are there?

. whelp twoway

<< index >>