grid.script: Create a grid grob containing an SVG script

Description Usage Arguments Value Author(s) See Also

View source: R/script.R

Description

Creates a script object which is a normal grid grob containing an SVG script. Useful in conjunction with grid.export, to produce an SVG document with script elements.

Usage

1
2
3
scriptGrob(script=NULL, filename=NULL, type="application/ecmascript",
           inline=FALSE, name=NULL)
grid.script(...)

Arguments

script

A character value specifying script code.

filename

The name of a file that contains script code.

type

The type of the script code.

inline

A logical specifying whether the script code from the file should be included inline or just referenced.

name

A character value giving a name for the grob.

...

Arguments to be passed into scriptGrob.

Value

A script.grob object.

Author(s)

Paul Murrell

See Also

grid.export


gridSVG documentation built on April 28, 2020, 9:05 a.m.