devEvalRGL: Opens a new RGL graphics device, evaluate (graphing) code,...

Description Usage Arguments Value

View source: R/devEvalRGL.R

Description

Opens a new RGL graphics device, evaluate (graphing) code, and closes device.

Usage

1
2
3
4
 devEvalRGL(type="webgl", expr, ..., initially=NULL, finally=NULL, envir=parent.frame(),
  name="Rplot", tags=NULL, sep=getDevOption("*", "sep"), ext="WebGL.html", filename=NULL,
  path=getDevOption("*", "path"), field=NULL, onIncomplete=c("remove", "rename", "keep"),
  force=getDevOption("*", "force"))

Arguments

type

Specifies the type of graphics device to be used. The device is created and opened using devNew. Multiple types may be specified.

expr

The expression of graphing commands to be evaluated.

initially, finally

Optional expression:s to be evaluated before and after expr. If type specifies multiple devices, these optional expression:s are only evaluated ones.

...

Additional arguments passed to devNewRGL().

envir

The environment where expr should be evaluated.

name, tags, sep

The fullname name of the image is specified as the name with optional sep-separated tags appended.

ext

The filename extension of the image file generated, if any. By default, it is inferred from argument type.

filename

The filename of the image saved, if any. By default, it is composed of arguments name, tags, sep, and ext. See also below.

path

The directory where then image should be saved, if any.

field

An optional character string specifying a specific field of the named result list to be returned.

onIncomplete

A character string specifying what to do with an image file that was incompletely generated due to an interrupt or an error.

force

If TRUE, and the image file already exists, then it is overwritten, otherwise not.

Value

Returns (invisibly) the index of the opened RGL device.


HenrikBengtsson/R.devices.rgl documentation built on May 6, 2019, 11:53 p.m.