popContext: Leaving A Modified Viewport Context

View source: R/clipmask.R

popContextR Documentation

Leaving A Modified Viewport Context


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).


popContext(n = 1)



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


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.




Simon Potter

See Also

grid.clipPath and grid.mask

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