Learn R Programming

pcds.ugraph (version 0.1.1)

plot.UndPCDs: Plot an UndPCDs object

Description

Plots the vertices and the edges of the underlying or reflexivity graphs 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 UndPCDs
plot(x, Jit = 0.1, ...)

Value

None

Arguments

x

Object of class UndPCDs.

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

Examples

Run this code
#\donttest{
nx<-20; ny<-5;
set.seed(1)
Xp<-cbind(runif(nx,0,1),runif(nx,0,1))
Yp<-cbind(runif(ny,0,.25),runif(ny,0,.25))+cbind(c(0,0,0.5,1,1),c(0,1,.5,0,1))
M<-c(1,1,1)  #try also M<-c(1,2,3)
r<-1.5
Edges<-edgesPE(Xp,Yp,r,M)
Edges
plot(Edges)
#}

Run the code above in your browser using DataLab