subset.hxsurf: Subset hxsurf object to specified regions

Description Usage Arguments Value See Also Examples

View source: R/hxsurf.R

Description

Subset hxsurf object to specified regions

Usage

1
2
## S3 method for class '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

Other hxsurf: as.hxsurf(), as.mesh3d(), materials(), plot3d.hxsurf(), read.hxsurf(), write.hxsurf()

Examples

1
2
3
4
5
6
7
8
9
# plot only vertical lobe
vertical_lobe=subset(MBL.surf, "VL")

plot3d(vertical_lobe, alpha=0.3)
plot3d(kcs20)

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

nat documentation built on Sept. 6, 2021, 5:09 p.m.