plotIntervals {pcds} | R Documentation |
The plot of the subintervals based on Yp
points
together with Xp
points
Description
Plots the Xp
points
and the intervals based on Yp
points.
If there are duplicates of Yp
points,
only one point is retained for each duplicate value,
and a warning message is printed.
Usage
plotIntervals(
Xp,
Yp,
main = NULL,
xlab = NULL,
ylab = NULL,
xlim = NULL,
ylim = NULL,
...
)
Arguments
Xp |
A set of 1D points whose scatter-plot is provided. |
Yp |
A set of 1D points which constitute the end points of the intervals which partition the real line. |
main |
An overall title for the plot (default= |
xlab , ylab |
Titles for the |
xlim , ylim |
Two |
... |
Additional |
Value
Plot of the intervals based on Yp
points
and also scatter plot of Xp
points
Author(s)
Elvan Ceyhan
See Also
plotPEregs1D
and plotDelaunay.tri
Examples
a<-0; b<-10;
#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)
Xp<-runif(nx,a,b)
Yp<-runif(ny,a,b)
plotIntervals(Xp,Yp,xlab="",ylab="")
[Package pcds version 0.1.8 Index]