popContext: Leaving A Modified Viewport Context

View source: R/clipmask.R

popContextR 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


gridSVG documentation built on March 31, 2023, 11:17 p.m.