plot.NumEdges {pcds.ugraph}R Documentation

Plot a NumEdges object

Description

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

Usage

## S3 method for class 'NumEdges'
plot(x, Jit = 0.1, ...)

Arguments

x

Object of class NumEdges.

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 underlying or reflexivity graph 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.NumEdges, summary.NumEdges, and print.summary.NumEdges

Examples

#\donttest{
nx<-15; ny<-5;
set.seed(1)
Xp<-cbind(runif(nx),runif(nx))
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)

Nedges = num.edgesAS(Xp,Yp,M)
Nedges
plot(Nedges)
#}


[Package pcds.ugraph version 0.1.1 Index]