Special EXCEL Graphs and Modifications Using Excel/PHStat
Courtesy of Maryann Babcock, Western Michigan University
Adding a Trendline to a Scatter Plot
- Go to the worksheet with the scatter diagram and click on the chart to select it
- Select Chart from the menu bar
- Select: Add Trendline
- Go to the Type tab and highlight the Linear graph box
- Go to the Options tab and check:
Display equation on chart
Display R-squared value on chart
- Click OK
NOTE: The equation and R-squared value form a unit which can be moved or enlarged
Residuals versus Predicted Values Plot
- Go to the Residual Output Table and highlight the Predicted and Residuals columns
- Click the Chart icon on the menu bar
- In the window, Choose XY (scatter) and then click Next
- Check to make sure that "Series in Columns" is selected and then click Next
- Go to the Legend tab and deselect Show Legend
- Go to the Gridlines tab and deselect Major Gridlines under Value (Y) Axis
- Go to the Titles tab and enter the following then click Next
Title: Residuals versus Fitted Values
Y: Residuals
X: Predicted Values
- Select: As object in: and then click Finish
NOTE: The completed plot will appear on the same worksheet with the Residual Output table.
It can then be moved or resized.
Plot Modifications
- Right click on the inside plot area and select Format Plot Area from the menu
Border: select automatic and then choose the first solid weight line
Area: select the white background block and then click OK
- Right click on the outer chart area and select Format Chart Area from the menu
Border: select automatic and then click OK
- To enlarge the titles and the scale numbers on each axis:
Place the mouse pointer on the title or number to be enlarged
Right click and select Format from the menu
Go to the Font tab and change font size to 10 and then click OK
NOTE: if you plan to Copy and Paste the plot to another worksheet so it can be resized,
then you must copy the object before enlarging titles or axis numbers.
Back to the top of the page
Back to the Stat 216 Home Page
Statistics Home Page
Western Michigan University Homepage
e-mail: Stat 216 Instructor
URL: http://homepages.wmich.edu/~lheun/s216/S216Grftip.html
Last modified: