R: Leaving A Modified Viewport Context

popContext {gridSVG} | R Documentation

## Leaving A Modified Viewport Context

### Description

A modified viewport context is where the appearance of grobs is no longer determined solely by the grob itself and the viewport into which they're drawn. This can occur when applying clipping paths and opacity masks, which modify the appearance of anything drawn after they have been applied. This function should be used when attempting to stop the effect of a modified viewport context (e.g. to stop clipping to paths).

### Usage

    popContext(n = 1)

### Arguments

`n` | The number of contexts to pop. A warning will be given when `n` is greater than the number that has been applied.

### Details

Popping a context can produce a warning. In this case it is recommended that the context "pushing" and "popping" be revised to have matching pairs of pushes and pops.

### Value

None.

### Author(s)

Simon Potter

### See Also

`grid.clipPath` and `grid.mask`

[Package gridSVG version 1.6-0 Index]