Example: Manage Multiple Plot Windows |
In this section, you create many plots of variables in the Hurricanes data set. The following steps use the Workspace Explorer to manage the display of plots:
Open the Hurricanes data set.
Scroll the data table horizontally until the min_pressure variable appears. Hold down the CTRL key while you select the min_pressure, wind_kts, longitude, and latitude variables, in that order.
Figure 11.16 shows the selected variables. Note that the column headings display numbers that indicate the order in which you selected the variables.
Select Graph Scatter Plot from the main menu.
A matrix of scatter plots appears, as shown in Figure 11.17.
The scatter plot of wind_kts versus min_pressure show a strong negative correlation () between wind speed and pressure. In the following steps, you model the linear relationship between these two variables and create plots of the fit residuals.
Select Analysis Data Smoothing Polynomial Regression from the main menu.
The dialog box shown in Figure 11.18 appears.
Select the variable wind_kts, and click Set Y. Select the variable min_pressure, and click Set X.
Click the Plots tab, as shown Figure 11.19.
Select all plots. Clear the check boxes Confidence limits for means and Prediction limits for individuals. Click OK.
The analysis creates the five requested plots and an output window, as shown in Figure 11.20. Some of the plots produced by the analysis might be hidden beneath other plots.
Your workspace now has a data table, a matrix of six scatter plots, five plots that are associated with an analysis, and an output window, for a total of 13 windows. The Workspace Explore enables you to manage these windows.
Press ALT+X to open the Workspace Explorer.
The Workspace Explorer is shown in Figure 11.21.
You can use the Workspace Explorer to do the following:
bring a window or group of windows to the front of other windows
For example, if you want to see all of the windows that are associated with the scatter plot matrix, you can do the following steps.
Click the node labeled Scatter Plot Matrix, and click View.
This step is shown in Figure 11.22. The matrix of scatter plots becomes visible.
You also can view a particular plot. For example, the following steps activate the plot that contains the least squares line.
In the Workspace Explorer, expand the node labeled Smoothing Polynomial Analysis of wind_kts, if it is not already expanded.
Click the item labeled Observed vs. min_pressure.
This step is shown in Figure 11.23. The icon to the left of the plot name indicates that the plot is a scatter plot. The icons in the Workspace Explorer match the icons on the Graph main menu.
Note that the Activate button is now active, whereas it was previously inactive. This is because the selected item is an individual window instead of a group of windows. Activate behaves similarly to View, but it also closes the Workspace Explorer and makes the selected window the active window.
Click Activate.
When you are finished viewing a group of plots, the Workspace Explorer makes it easy to close them. Press ALT+X to open the Workspace Explorer. Click the node labeled Analysis windows. Click Close Window(s).
This step is shown in Figure 11.24. SAS/IML Studio closes all of the plots created in this example. You can close workspaces in the same way.
In summary, the Workspace Explorer enables you to view (or hide) windows. The following list describes each button in the Workspace Explorer.
makes the selected window visible and active. Selecting this button also closes the Workspace Explorer.
makes the selected window or group of windows visible.
hides the selected window or group of windows.
closes the selected window or group of windows. You can also press the DELETE key to close the selected window or group of windows.
closes the Workspace Explorer.