Learn R Programming

pcds (version 0.1.8)

plot.NumArcs: Plot a NumArcs object

Description

Plots the scatter plot of the data points (i.e. vertices of the PCDs) and the Delaunay tessellation of the nontarget points marked with number of arcs in the centroid of the Delaunay cells.

Usage

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

Value

None

Arguments

x

Object of class NumArcs.

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.NumArcs, summary.NumArcs, and print.summary.NumArcs

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