# X-Y Plotting with Simple Linear Regression Line and Equation

### Description

The function plots a simple scatter plot, fits the regression line on the scatter plot, and lists the equation of the fitted regression line as the title.

### Usage

1 2 |

### Arguments

`x` |
The x coordinates of points in the plot. Alternatively, a single plotting structure or function can be provided. |

`y` |
The y coordinates of points in the plot, optional if |

`data` |
A data frame including the |

`xlab` |
The label of the |

`ylab` |
The label of the |

`pch` |
The plotting character; i.e., symbol to use. This can be either a single character or an integer code for one of a set of graphics symbols. |

`col` |
A vector of size two for the color code or name. The first value is the color of the plotting character, and the second value is the color of the fitted regression line. |

`digits.intercept` |
The desired number of significant digits for the intercept. |

`digits.slope` |
The desired number of significant digits for the slope. |

`...` |
Optional arguments to be passed to the |

### Note

This function `plotLine`

uses functions `plot`

and `lm`

.

### Author(s)

Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA

### See Also

`plot`

and `lm`

### Examples

1 2 3 4 5 6 7 8 |