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.

1 2 |

`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 |

This function `plotLine`

uses functions `plot`

and `lm`

.

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

1 2 3 4 5 6 7 8 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.