R: Create a definition of a gradient fill.

Gradient Fills {gridSVG} | R Documentation

## Create a definition of a gradient fill.

### Description

A feature of SVG is that elements can be filled with a gradient that is defined somewhere in the document. The purpose of the `registerGradientFill` function is to create a definition of a gradient fill so that it can be referred to by grobs drawn by gridSVG.

### Usage

    registerGradientFill(label, gradient)

### Arguments

`label` | A character identifier for a gradient fill.
`gradient` | A gradient object filled with gradient stops. See `linearGradient` and `radialGradient`.

### Value

None.

### Author(s)

Simon Potter

### See Also

`linearGradient`, `radialGradient`, `grid.gradientFill`

[Package gridSVG version 1.6-0 Index]