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

View source: R/script.R

grid.scriptR Documentation

Create a grid grob containing an SVG script

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

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 March 31, 2023, 11:17 p.m.