Learn R Programming

pcds (version 0.1.8)

plot.PCDs: Plot a PCDs object

Description

Plots the vertices and the arcs of the PCD together with the vertices and boundaries of the partition cells (i.e., intervals in the 1D case and triangles in the 2D case)

Usage

# S3 method for PCDs
plot(x, Jit = 0.1, ...)

Value

None

Arguments

x

Object of class PCDs.

Jit

A positive real number that determines the amount of jitter along the \(y\)-axis, default is 0.1, for the 1D case, the vertices of the PCD are jittered according to \(U(-Jit,Jit)\) distribution along the \(y\)-axis where Jit equals to the range of vertices and the interval end points; it is redundant in the 2D case.

...

Additional parameters for plot.

See Also

print.PCDs, summary.PCDs, and print.summary.PCDs

Examples

Run this code
# \donttest{
A<-c(1,1); B<-c(2,0); C<-c(1.5,2);
Tr<-rbind(A,B,C);
n<-10
Xp<-runif.tri(n,Tr)$g
M<-as.numeric(runif.tri(1,Tr)$g)
Arcs<-arcsAStri(Xp,Tr,M)
Arcs
plot(Arcs)
# }

Run the code above in your browser using DataLab