Shade the mask of an x3p object to reflect its surface profile
Source:R/x3p_shade_mask.R
x3p_shade_mask.Rd
Apply color shading to the mask of a 3d topographic surface.
Examples
if (FALSE) { # \dontrun{
data(wire)
x3p <- wire
x3p_image(x3p, size = c(400, 400), zoom=0.8)
x3p_with <- x3p %>% x3p_shade_mask()
x3p_image(x3p_with, size = c(400, 400), zoom=0.8)
data(lea)
lea %>% x3p_shade_mask() %>% x3p_image()
lea %>% x3p_shade_mask(freqs = c(0, 0.05, 0.1, 0.3,0.7, 0.9, 0.95, 1)) %>% x3p_image()
} # }