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 c
in dat
) is added to the y-direction.
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:revstat-2016;textualpcds).
plotCSregsInt(
dat,
t,
c = 0.5,
int,
Jit = 0.1,
main = "",
xlab = "",
ylab = "",
xlim = NULL,
ylim = NULL,
centers = FALSE,
...
)
A set of 1D points for which CS proximity regions are to be constructed.
A positive real number which serves as the expansion parameter in CS proximity region.
A positive real number in
A vector of two real numbers representing an interval.
A positive real number that determines the amount of jitter along the y-axis, default is 0.1 and
dat
points are jittered according to Jit
equals to the range of dat
and proximity region
intervals multiplied by Jit
).
Title of the main heading of the plot.
Titles for the x and y axes, respectively (default="" for both).
Numeric vectors of length 2, giving the x- and y-coordinate ranges.
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.
Plot of the CS proximity regions for 1D points in or outside the interval int
# NOT RUN {
c<-.4
t<-2
a<-0; b<-10; int<-c(a,b)
n<-10
xr<-range(a,b)
xf<-(xr[2]-xr[1])*.1
dat<-runif(n,a-xf,b+xf) #try also dat<-runif(n,a-5,b+5)
plotCSregsInt(7,t,c,int)
plotCSregsInt(dat,t,c,int)
plotCSregsInt(17,t,c,int)
plotCSregsInt(1,t,c,int)
plotCSregsInt(4,t,c,int)
plotCSregsInt(-7,t,c,int)
# }
Run the code above in your browser using DataLab