Description Usage Arguments Details Author(s) References
This function shows regression lines on user-defined data before and after adding an additional point.
1 | outlier_demo(cex.leg=0.8)
|
cex.leg |
A number specifying the magnification of legends inside the plot. Smaller numbers mean smaller font. |
This function allows the user to generate data by click on a plot. Once two points are added, the least squares regression line is draw. When an additional point is added, the regression line updates while also showing the line without that point. The effect of outliers on a regression line can easily be illustrated. Pressing the red UNDO button on the plot will allow you to take away recently added points for further exploration.
Note: To end the demo, you MUST click on the red box labeled "End" (or press Escape, which will return an error)
Adam Petrie
Introduction to Regression and Modeling
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.