plotPEarcs1D {pcds}R Documentation

The plot of the arcs of Proportional Edge Proximity Catch Digraphs (PE-PCDs) for 1D data (vertices jittered along yy-coordinate) - multiple interval case

Description

Plots the arcs of PE-PCD whose vertices are the 1D points, Xp. PE proximity regions are constructed with expansion parameter r1r \ge 1 and centrality parameter c(0,1)c \in (0,1) and the intervals are based on Yp points (i.e. the intervalization is based on Yp points). That is, data set Xp constitutes the vertices of the digraph and Yp determines the end points of the intervals. If there are duplicates of Yp or Xp points, only one point is retained for each duplicate value, and a warning message is printed.

For better visualization, a uniform jitter from U(Jit,Jit)U(-Jit,Jit) (default for Jit=.1Jit=.1) is added to the yy-direction where Jit equals to the range of Xp and Yp multiplied by Jit with default for Jit=.1Jit=.1). centers is a logical argument, if TRUE, plot includes the centers of the intervals as vertical lines in the plot, else centers of the intervals are not plotted.

See also (Ceyhan (2012)).

Usage

plotPEarcs1D(
  Xp,
  Yp,
  r,
  c = 0.5,
  Jit = 0.1,
  main = NULL,
  xlab = NULL,
  ylab = NULL,
  xlim = NULL,
  ylim = NULL,
  centers = FALSE,
  ...
)

Arguments

Xp

A vector of 1D points constituting the vertices of the PE-PCD.

Yp

A vector of 1D points constituting the end points of the intervals.

r

A positive real number which serves as the expansion parameter in PE proximity region; must be 1\ge 1.

c

A positive real number in (0,1)(0,1) parameterizing the center inside middle intervals with the default c=.5. For the interval, (a,b)(a,b), the parameterized center is Mc=a+c(ba)M_c=a+c(b-a).

Jit

A positive real number that determines the amount of jitter along the yy-axis, default=0.1 and Xp points are jittered according to U(Jit,Jit)U(-Jit,Jit) distribution along the yy-axis where Jit equals to the range of the union of Xp and Yp points multiplied by Jit).

main

An overall title for the plot (default=NULL).

xlab, ylab

Titles of the xx and yy axes in the plot (default=NULL for both).

xlim, ylim

Two numeric vectors of length 2, giving the xx- and yy-coordinate ranges (default=NULL for both).

centers

A logical argument, if TRUE, plot includes the centers of the intervals as vertical lines in the plot, else centers of the intervals are not plotted.

...

Additional plot parameters.

Value

A plot of the arcs of PE-PCD whose vertices are the 1D data set Xp in which vertices are jittered along yy-axis for better visualization.

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

plotPEarcs.int and plotCSarcs1D

Examples


r<-2
c<-.4
a<-0; b<-10; int<-c(a,b)

#nx is number of X points (target) and ny is number of Y points (nontarget)
nx<-20; ny<-4;  #try also nx<-40; ny<-10 or nx<-1000; ny<-10;

set.seed(1)
xf<-(int[2]-int[1])*.1

Xp<-runif(nx,a-xf,b+xf)
Yp<-runif(ny,a,b)

Xlim=range(Xp,Yp)
Ylim=.1*c(-1,1)

jit<-.1

set.seed(1)
plotPEarcs1D(Xp,Yp,r=1.5,c=.3,jit,xlab="",ylab="",centers=TRUE)
set.seed(1)
plotPEarcs1D(Xp,Yp,r=2,c=.3,jit,xlab="",ylab="",centers=TRUE)



[Package pcds version 0.1.8 Index]