#### 15.4.1 Scatterplot

The subcommand `SCATTERPLOT` produces an xy plot of the data. The different values of the optional third variable var3 will result in different colours and/or markers for the plot. The following is an example for producing a scatterplot.

    GRAPH
            /SCATTERPLOT = height WITH weight BY gender.

This example will produce a scatterplot where height is plotted versus weight. Depending on the value of the gender variable, the colour of the datapoint is different. With this plot it is possible to analyze gender differences for height vs. weight relation.