A linear model estimates the best fit line from a set of points, often through minimization of the sum of squared residuals.
By analogy, is there any established method (possibly implemented in R) for fitting a plane to a set of lines (or segments) ? For example, minimizing sum of area (or squared area ?) between residual-lines and the best-fitting plane ?
Thanks.