Subset hxsurf object to specified regions

# S3 method for hxsurf
subset(x, subset = NULL, drop = TRUE, rval = c("hxsurf", "names"), ...)

Arguments

x

A dotprops object

subset

Character vector specifying regions to keep. Interpreted as regex if of length 1 and no fixed match.

drop

Whether to drop unused vertices after subsetting (default: TRUE)

rval

Whether to return a new hxsurf object or just the names of the matching regions

...

Additional parameters (currently ignored)

Value

subsetted hxsurf object

See also

Examples

# plot only vertical lobe
vertical_lobe=subset(MBL.surf, "VL")
# \donttest{
plot3d(vertical_lobe, alpha=0.3)
plot3d(kcs20)

# there is also a shortcut for this
nclear3d()
plot3d(MBL.surf, subset = "VL", alpha=0.3)
# }