plotCSregs.int: The plot of the Central Similarity (CS) Proximity Regions for...

View source: R/CentSim1D.R

plotCSregs.intR Documentation

The plot of the Central Similarity (CS) 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 CS proximity regions (which are also intervals). CS proximity regions are constructed with expansion parameter t > 0 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. 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.

Usage

plotCSregs.int(
  Xp,
  int,
  t,
  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 CS proximity regions are to be constructed.

int

A vector of two real numbers representing an interval.

t

A positive real number which serves as the expansion parameter in CS proximity region.

c

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

Jit

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

main

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

xlab, ylab

Titles for the x and y axes, respectively (default=NULL for both).

xlim, ylim

Two numeric vectors of length 2, giving the x- and y-coordinate ranges.

center

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.

...

Additional plot parameters.

Value

Plot of the CS proximity regions for 1D points in or outside the interval int

Author(s)

Elvan Ceyhan

References

\insertAllCited

See Also

plotCSregs1D, plotCSregs, and plotPEregs.int

Examples

c<-.4
tau<-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)

plotCSregs.int(7,int,tau,c,xlab="x",ylab="")

plotCSregs.int(Xp,int,tau,c,xlab="x",ylab="")

plotCSregs.int(17,int,tau,c,xlab="x",ylab="")
plotCSregs.int(1,int,tau,c,xlab="x",ylab="")
plotCSregs.int(4,int,tau,c,xlab="x",ylab="")

plotCSregs.int(-7,int,tau,c,xlab="x",ylab="")


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