plotIntervals: The plot of the subintervals based on 'Yp' points together...

View source: R/AuxDelaunay.R

plotIntervalsR 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.

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=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 (default=NULL for both).

...

Additional plot parameters.

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

## Not run: 
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="")

## End(Not run)


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