Exploring Data in Two Dimensions |
Line Plots of Selected Variables |
If one or more variables are selected in a data table when you select Graph Line Plot, then the Line Plot dialog box does not appear. Instead, a line plot is created. The rules for constructing the line plot are as follows:
If one variable is selected, create a line plot of versus .
If exactly two variables are selected, the first is used as the Y variable and the second as the X variable.
If variables are selected, then count the number of selected nominal variables.
If no nominal variables are selected, create a line plot of versus .
If there are nominal variables selected, then count the number of selected interval variables.
If no interval variables are selected, then plot the first selected variable as Y, plot the second selected variable as X, and use the remaining selected variables as group variables.
If there is exactly one interval variable, then plot it as Y if it was chosen first, and otherwise plot it as X. The first nominal variable is assigned to the X or Y role, and the remaining selected variables are used as group variables.
If there are exactly two interval variables, then plot the first selected interval variable as Y, plot the second as X, and use the remaining selected variables as group variables.
If there are more than two interval variables, then ignore the nominal variables and plot the interval variables as in rule 1.
Variables with a Frequency or Weight role are ignored when you are creating line plots.
Copyright © SAS Institute, Inc. All Rights Reserved.