nan.plot | R Documentation |
The functions to plot all points of the dataset even they are out of the xlim
and ylim
range.
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, ...)
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 |
force.bound |
logical value to forcefully create the extended region. |
delta |
the relative size of region based on main region size. |
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.
These are experimental functions so the troubles are possible.
plot.default
points
### 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.