R/nullplot.R

Defines functions nullplot

Documented in nullplot

#' nullplot
#' 
#' Make an plot with nothing in it
#' 
#' @param x1 lowest x-axis value
#' @param x2 largest x-axis value
#' @param y1 lowest y-axis value
#' @param y2 largest y-axis value
#' @param xlab x-axis title, defaults to no title
#' @param ylab y-axis title, defaults to no title
#' @param ... further arguments passed on to plot
#' 
#' @examples
#' nullplot()
#' 
#' @importFrom graphics plot
#' @export

nullplot <- function(x1 = 0, x2 = 1, y1 = 0, y2 = 1, xlab = "", ylab = "", ...) {
  plot(0, 0, xlim = c(x1,x2), ylim = c(y1,y2), type = "n", xlab = xlab, ylab = ylab, ...)
}

Try the rafalib package in your browser

Any scripts or data that you put into this service are public.

rafalib documentation built on April 11, 2025, 5:51 p.m.