line(x, y = NULL)## S3 method for class 'tukeyline': print(x, digits = max(3L, getOption("digits") - 3L), ...)
x |
the x coordinates of points. If y is missing, x should be an object
implicitly containing x-y data: a 2-column matrix, a list with components named x and y,
a complex vector, a ts object, or a numeric vector.
See xy.coords for more details.
For the print method, x is an object of class "tukeyline", typically producted by line. |
y | the y coordinates of points. |
digits | the maximum number of (significant) digits to use for coefficients of tukey line. |
... | other optional arguments passed to generic function. |
call | system call of this function. |
coefficients | the coefficients, intercept then slope, of the fitted line. |
residuals | the actual y values minus the fitted values. |
fitted.values | the y values on the fitted line at the observed x values. |
tukey.line <- with(Sdatasets::fuel.frame, line(Weight, Fuel)) tukey.line coefficients(lm(Fuel ~ Weight, data=Sdatasets::fuel.frame))