View source: R/x3p_add_mask_layer.R
x3p_add_mask_layer | R Documentation |
Add a region a mask. The region is specfied as TRUE values in a matrix of the same dimensions as the existing mask. In case no mask exists, one is created.
x3p_add_mask_layer(x3p, mask, color = "red", annotation = "")
x3p |
x3p object |
mask |
logical matrix of the same dimension as the surface matrix. Values of TRUE are assumed to be added in the mask, values of FALSE are being ignored. |
color |
name or hex value of color |
annotation |
character value describing the region |
x3p object with changed mask
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.