plot.PCDs: Plot a 'PCDs' 'object'

plot.PCDsR Documentation

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 class 'PCDs'
plot(x, Jit = 0.1, ...)

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.

Value

None

See Also

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

Examples

## Not run: 
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)

## End(Not run)


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