Learn R Programming

pcds (version 0.1.1)

summary.TriLines: Return a summary of a TriLines object

Description

Returns the below information about the object:

call of the function defining the object, the defining points, selected x and y points on the line, equation of the line, together with the vertices of the triangle, and coefficients of the line.

Usage

# S3 method for TriLines
summary(object, ...)

Arguments

object

Object of class TriLines.

Additional parameters for summary.

Value

The call of the object of class 'TriLines', the defining points, selected x and y points on the line, equation of the line, together with the vertices of the triangle, and coefficients of the line (in the form: y = slope * x + intercept).

See Also

print.TriLines, print.summary.TriLines, and plot.TriLines

Examples

Run this code
# NOT RUN {
A<-c(0,0); B<-c(1,0); C<-c(1/2,sqrt(3)/2);
Te<-rbind(A,B,C)
xfence<-abs(A[1]-B[1])*.25 #how far to go at the lower and upper ends in the x-coordinate
x<-seq(min(A[1],B[1])-xfence,max(A[1],B[1])+xfence,by=.01)

lnACM<-lA_CM.Te(x)
lnACM
summary(lnACM)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab