Scatter (and Line) Plot

 

Menu location: Graphics_Scatter.

 

This function plots a single Y axis (ordinate) variable or series against an X axis (abscissa) variable or series. The scale selection for the axes is automatic. Each series is plotted using different marker style and you can opt to display joining lines between the markers.

 

There is a scatter plot (text-based) for single Y vs. X character based plots.

 

Example

Test workbook (Graphics worksheet: PImax (cm H2O), Subject's Age (years)).

 

Consider the maximal static inspiratory pressure (PImax, in cm of water) and the age of 25 patients with cystic fibrosis (Altman, 1991). A scatter plot is the first thing to draw when asking how two measurements are related.

 

To draw this plot in StatsDirect open the test workbook using the file open function of the file menu. Then select Scatter from the Graphics menu. Enter 1 as the number of series to plot, then select the column marked "PImax (cm H2O)" when prompted for the Y axis data and the column marked "Subject's Age (years)" when prompted for the X axis data.

 

For this example the plot has 25 points, two of which coincide (8 years, 95 cm H2O): age from 7 to 23 years; PImax from 40 to 150 cm H2O. Each point is an open circle, the chart is titled "Scatter plot" and the axes take the titles of the columns.

 

The plot shows PImax rising with age, but with much scatter about that trend: patients of the same age differ by up to 75 cm H2O (at 23 years), and the two lowest pressures (40 and 45 cm H2O) belong to patients of 19 and 11 years, not to the youngest. A relationship this loose is worth seeing before it is summarised as a correlation coefficient or a regression line.