R/pstext.R

Defines functions pstext

Documented in pstext

pstext <- function(x, cmd="-J -R -O -K", file=getOption("gmt.file"))
{
  if(is.null(file))
    stop("please pass a valid 'file' argument, or run gmt(file=\"myfile\")")
  owd <- setwd(dirname(file)); on.exit(setwd(owd))

  tmp <- paste(dirname(tempdir()), "text.gmt", sep="/")
  r2gmt(x, tmp)
  gmt.system(paste("gmt pstext",tmp,cmd), file=file, append=TRUE)

  invisible(NULL)
}

Try the gmt package in your browser

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

gmt documentation built on June 7, 2022, 1:11 a.m.