Learn R Programming

pcds (version 0.1.8)

plot.TriLines: Plot a TriLines object

Description

Plots the line together with the defining triangle.

Usage

# S3 method for TriLines
plot(x, xlab = "x", ylab = "y", ...)

Value

None

Arguments

x

Object of class TriLines.

xlab, ylab

Titles for the \(x\) and \(y\) axes, respectively (default is xlab="x" and ylab="y").

...

Additional parameters for plot.

See Also

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

Examples

Run this code
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,l=3)

lnACM<-lineA2CMinTe(x)
lnACM
plot(lnACM)

Run the code above in your browser using DataLab