Example: Create a Rotating Scatter Plot

In this section you create a rotating plot to explore the relationships among the wind_kts, latitude, and longitude variables of the Hurricanes data set. The wind_kts variable gives the wind speed in knots for each observation.

None of the variables in this example have missing values. If an observation has a missing value for any of the three variables in the rotating plot, that observation is not plotted.

To create a rotating plot:

  1. Open the Hurricanes data set.

  2. Select GraphRotating Plot from the main menu, as shown in Figure 7.1.

    Figure 7.1: Selecting a Rotating Plot

    Selecting a Rotating Plot


    The Rotating Plot dialog box appears. (See Figure 7.2.)

  3. Select the wind_kts variable, and click Set Z.

  4. Select the latitude variable, and click Set Y.

  5. Select the longitude variable, and click Set X.

  6. Click OK.

    Figure 7.2: The Rotating Plot Dialog Box

    The Rotating Plot Dialog Box


    A rotating plot appears (Figure 7.3), which shows a cloud of points. You can rotate the plot by clicking the icons on the left side of the plot. The top two buttons rotate the plot about a horizontal axis. The next two buttons rotate the plot about a vertical axis. The last two buttons rotate the plot clockwise and counterclockwise. The slider below the buttons controls the speed of rotation.

    Alternatively, you can rotate the plot by moving the mouse pointer into a corner of the plot until the pointer changes (to $\circlearrowleft $). You can interactively rotate the plot by holding down the left mouse button while you move the mouse.

    Figure 7.3: A Rotating Plot

    A Rotating Plot


    You can click an observation in a rotating plot to select the observation. You can click while holding down the CTRL key to select multiple observations. You can also draw a selection rectangle to select multiple observations.

    You can create rotating plots of any variables, numeric or character.

    Because there are so many observations in the rotating plot, some observations obscure others—a phenomenon known as overplotting. It also can be difficult to discern the coordinates of observations as they are positioned in three-dimensional space. That is, which observations are closer to the viewer?

    A visualization technique that sometimes helps distinguish observations with similar projected coordinates is to color the observations. For these data, you can color the observations according to the wind_kts variable.

  7. Right-click near the center of the plot, and select Plot Area Properties from the pop-up menu.

    The dialog box shown in Figure 7.4 appears.

    Figure 7.4: Plot Area Properties for a Rotating Plot

    Plot Area Properties for a Rotating Plot


  8. Click the Observations tab, as shown in Figure 7.5.

    Figure 7.5: Observations Tab for a Rotating Plot

    Observations Tab for a Rotating Plot


  9. Select wind_kts from the Outline: Blend list.

  10. Select a gradient color map from the Outline list.

  11. Select the same options for the Fill: Blend and Fill lists.

  12. Select name from the Label observations by list.

    This step specifies that the name of the cyclone should appear when you click an observation. By default the observation number is used as a label.

  13. Click Apply to update the plot with the options you have selected so far.

    You can optionally use two additional features to aid in visualizing these data.

  14. Click the Reference Lines tab, shown in Figure 7.6.

  15. Select Show Z reference lines.

  16. Click Apply.

    When you click Apply, the plot updates to show reference lines at each tick on the axis for the Z variable (in this case, wind_kts). The reference lines are displayed in Figure 7.8.

    Figure 7.6: Reference Lines Tab for a Rotating Plot

    Reference Lines Tab for a Rotating Plot


  17. Click the Plot Area tab, shown in Figure 7.7.

  18. Select Show plot frame box.

  19. Click OK.

    The rotating plot updates to reflect the options you selected. (See Figure 7.8.) You can rotate the plot to observe how wind speeds in these tropical cyclones vary according to latitude and longitude. You can click interesting observations and see the name of the storms they represent.

    Figure 7.7: Plot Area Tab for a Rotating Plot

    Plot Area Tab for a Rotating Plot


    You can see that the storms with the strongest winds tend to occur west of 45 degrees west latitude, and roughly between 12 and 32 degrees north latitude. You can also see that many cyclones begin in southern latitudes where they move west or northwest, then later they turn north and northeast as they approach higher latitudes. The wind speed along a track tends to increase over warm water and decrease over land or cooler water.

Figure 7.8: A Rotating Plot with Selected Observations

A Rotating Plot with Selected Observations