Learn R Programming

grid (version 3.6.1)

explode: Explode a path into its components.

Description

Explode a viewport path or grob path into its components.

Usage

explode(x)
# S3 method for character
explode(x)
# S3 method for path
explode(x)

Arguments

x

Typically a viewport path or a grob path, but a character vector containing zero or more path separators may also be given.

Value

A character vector.

See Also

vpPath, gPath.

Examples

Run this code
# NOT RUN {
explode("vp1::vp2")
explode(vpPath("vp1", "vp2"))
# }

Run the code above in your browser using DataLab