View source: R/line_parameters.R
line_parameters | R Documentation |
Helper function that returns slope and intercept for line equation using two points in the cartesian plot: (x1, x2) and (y1, y2)
line_parameters(x1, y1, x2, y2)
x1 |
first value of the point (x1, x2) in the cartesian plot |
y1 |
first value of the point (y1, y2) in the cartesian plot |
x2 |
second value of the point (x1, x2) in the cartesian plot |
y2 |
second value of the point (y1, y2) in the cartesian plot |
Vector of slope and intercept for equation of line.
line_parameters(1,2,4,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.