next up previous
Link to Statistics and Actuarial Science main page
Next: Correlation and Least-Squares Regression Up: Some Rweb Notes Previous: Normal Distributions

Scatterplots

The data used in this section consists of heights and weights measured on 5 individuals.

The command plot(height,weight) creates a scatterplot with height on the horizontal axis and weight on the vertical axis.

You can label the axes and add a title to the plot:
You can also add a line with slope 0.9307 and intercept -80.04 (this is the least squares line):
Try some examples of your own in the work area below.

Work Area
Enter your own commands here; then click the Submit button.


Luke Tierney 2006-08-23