- Minitab Cookbook
- Isaac Newton
- 508字
- 2021-07-16 12:29:23
Creating a scatterplot of two variables
We will use a Scatterplot
command to visualize the relationship between a resting pulse and the pulse after a group of students' activity.
How to do it…
The following instructions create a scatterplot of Pulse1
—the resting pulse, Pulse2
—the pulse after activity, and the Ran
column. The Ran
column indicates whether a student ran in his/her place or not:
- Go to the File menu and select Open Worksheet….
- Click on the button labeled Look in Minitab Sample Data folder.
- Open the
Pulse.MTW
worksheet. - Go to the Graph menu and select Scatterplot….
- From the graph selection screen, select the With Groups scatterplot.
- Enter
Pulse2
as the y variable andPulse1
as the x variable. - Next, enter
Ran
as Categorical variable for grouping (0-3):. Then click on OK.
How it works…
In the graph, we have created our y variables that are placed on the vertical y axis, and the x variables along the horizontal x axis. The y axis most commonly plots outputs to our responses in the data. Predictors, which are our inputs, are entered on the x axis.
By entering the Ran
column as a grouping variable, we change the style of points on the graph. Here, 1 under Ran
is shown as circles, and 2 as squares. Our results in the scatterplot may lead us to believe that it was the first group that exercised.

There's more…
Least squares regression lines can be added to the scatterplot by right-clicking on the chart and selecting Add | Regression Fit…. A regression line added this way will not report the coefficient tables or analysis of variance tables.
The fitted model can be viewed with a pop-up textbox when hovering the cursor over the line. For statistical information on the model, use fitted line plots in regression.
The Crosshairs feature can be found from the right-click menu and is very useful for finding coordinates on the graph. The brushing tool is also a powerful tool to use in scatterplots. This is available from the right-click menu and is used to highlight individual or groups of data points. By default, it will report row numbers and can also be used to display row information from the worksheet.

An example of brushing is shown in the previous screenshot. To brush the chart, right-click on the chart and select Brush. To add row information from the columns in the worksheet, right-click on the graph once more and select Set ID Variables… from the right-click menu. Then, double-click on the Sex, Smokes, and Activity columns in the Variables: section. Click on OK and highlight a few points on the chart to observe the values of the columns entered as variables in brushing.
- 一本書學(xué)內(nèi)部審計:新手內(nèi)部審計從入門到精通
- 審計學(xué)基礎(chǔ)
- 基于價值增值的治理導(dǎo)向型內(nèi)部審計研究
- Azure Strategy and Implementation Guide
- Metabase Up and Running
- SAP ABAP Advanced Cookbook
- 財務(wù)審計實務(wù)指南
- 財務(wù)建模與綜合估值:數(shù)據(jù)研磨、模型校準(zhǔn)、動態(tài)估值
- OAuth 2.0 Identity and Access Management Patterns
- 審計基礎(chǔ)
- Stata統(tǒng)計分析與行業(yè)應(yīng)用案例詳解(第2版)
- Microsoft Dynamics CRM 2016 Customization(Second Edition)
- 統(tǒng)計學(xué)視角下的金融高頻數(shù)據(jù)挖掘理論與方法研究
- 效益實現(xiàn)管理實踐指南
- 多項目管理方法及其應(yīng)用研究(國家社科基金后期資助項目)