Learn R Programming

pcds (version 0.1.1)

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", ...)

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.

Value

None

See Also

print.TriLines, summary.TriLines, and print.summary.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
plot(lnACM)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab