plotPEregs.int {pcds} | R Documentation |
The plot of the Proportional Edge (PE) Proximity Regions for a general interval
(vertices jittered along y
-coordinate) - one interval case
Description
Plots the points in and outside of the interval int
and also the PE proximity regions (which are also intervals).
PE proximity regions are constructed with expansion parameter r \ge 1
and centrality parameter c \in (0,1)
.
For better visualization, a uniform jitter from U(-Jit,Jit)
(default is Jit=.1
) times range of proximity
regions and Xp
) is added to the y
-direction.
If there are duplicates of Xp
points,
only one point is retained for each duplicate value,
and a warning message is printed.
center
is a logical argument, if TRUE
, plot includes the
center of the interval as a vertical line in the plot,
else center of the interval is not plotted.
See also (Ceyhan (2012)).
Usage
plotPEregs.int(
Xp,
int,
r,
c = 0.5,
Jit = 0.1,
main = NULL,
xlab = NULL,
ylab = NULL,
xlim = NULL,
ylim = NULL,
center = FALSE,
...
)
Arguments
Xp |
A set of 1D points for which PE proximity regions are to be constructed. |
int |
A |
r |
A positive real number which serves as the expansion parameter in PE proximity region;
must be |
c |
A positive real number in |
Jit |
A positive real number that determines the amount of jitter along the |
main |
An overall title for the plot (default= |
xlab , ylab |
Titles for the |
xlim , ylim |
Two |
center |
A logical argument, if |
... |
Additional |
Value
Plot of the PE proximity regions for 1D points in or outside the interval int
Author(s)
Elvan Ceyhan
References
Ceyhan E (2012). “The Distribution of the Relative Arc Density of a Family of Interval Catch Digraph Based on Uniform Data.” Metrika, 75(6), 761-793.
See Also
plotPEregs1D
, plotCSregs.int
, and plotCSregs.int
Examples
c<-.4
r<-2
a<-0; b<-10; int<-c(a,b)
n<-10
xf<-(int[2]-int[1])*.1
Xp<-runif(n,a-xf,b+xf) #try also Xp<-runif(n,a-5,b+5)
plotPEregs.int(Xp,int,r,c,xlab="x",ylab="")
plotPEregs.int(7,int,r,c,xlab="x",ylab="")