R/plotsurf.R

Defines functions plotsurf

Documented in plotsurf

plotsurf <- function(data, x = 2, y = 3, z = 4, mode = 1, ...)
{
  if(is.character(data)) {
    stopifnot(file.exists(data <- path.expand(data)))
    sep <- list(...)$sep
    sep <- if(is.null(sep)) ""
    data <- read.table(data, header = TRUE, sep = sep)
  }
  data <- data[, c(x, y, z)]
  plot3d(x = data, c.select = 3:ncol(data),
    image = 2 %in% mode, contour = 3 %in% mode, ...)
}

Try the R2BayesX package in your browser

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

R2BayesX documentation built on Oct. 20, 2023, 9:11 a.m.