print.Lines: Print a 'Lines' 'object'

View source: R/ClassFunctions.R

print.LinesR Documentation

Print a Lines object

Description

Prints the call of the object of class "Lines" and also the coefficients of the line (in the form: y = slope * x + intercept).

Usage

## S3 method for class 'Lines'
print(x, ...)

Arguments

x

A Lines object.

...

Additional arguments for the S3 method 'print'.

Value

The call of the object of class "Lines" and the coefficients of the line (in the form: y = slope * x + intercept).

See Also

summary.Lines, print.summary.Lines, and plot.Lines

Examples

A<-c(-1.22,-2.33); B<-c(2.55,3.75)
xr<-range(A,B);
xf<-(xr[2]-xr[1])*.1 #how far to go at the lower and upper ends in the x-coordinate
x<-seq(xr[1]-xf,xr[2]+xf,l=3) #try also l=10, 20 or 100

lnAB<-Line(A,B,x)
lnAB
print(lnAB)

typeof(lnAB)
attributes(lnAB)


elvanceyhan/pcds documentation built on June 29, 2023, 8:12 a.m.