nan.plot: Plot all points including infinite

View source: R/nan.plot.R

nan.plotR Documentation

Plot all points including infinite

Description

The functions to plot all points of the dataset even they are out of the xlim and ylim range.

Usage

nan.plot(x, y, xlim = range(x, finite = TRUE), ylim = range(y, finite = TRUE),
          log = c("", "x", "y", "xy"), ...,
          force.bound = FALSE, delta = 0.1)

nan.points(x, y, ...)

Arguments

x

numeric vector to plot on x-axis.

y

numeric vector to plot on y-axis.

xlim

the x limits (x1, x2) for main region.

ylim

the y limits (y1, y2) for main region.

log

a character string which contains "x" if the x axis is to be logarithmic, "y" if the y axis is to be logarithmic and "xy" or "yx" if both axes are to be logarithmic.

...

other graphical parameters passed to plot.default or points

force.bound

logical value to forcefully create the extended region. F means the extended region is created if some of points is out of the main region.

delta

the relative size of region based on main region size.

Details

If someone use the default plot and points method the points out of xlim and ylim bacame invisible. In some cases it is not OK. The presented functions creates the exteded region and plot all points including infinete values there.

The function work only for numerical vectors but not for data.frame, matrix, etc.

Note

These are experimental functions so the troubles are possible.

See Also

plot.default
points

Examples

### comparison of exponential plots
x<-seq(0,20, 0.1)
y<-5*exp(x)
plot(x,y) # default plot without limits
plot(x,y, ylim=c(0,100)) # default plot with y limits
nan.plot(x,y, ylim=c(0,100)) 

insysbio/dbs-package documentation built on Aug. 4, 2022, 2:11 p.m.