powered by
Using image_shade of 'magick' interactively. azimuth and elevation are parameters of image_shade. See reference manual of 'magick' for detail.
interactive_shade( image, color = FALSE, range_max_azimuth, range_min_azimuth, range_max_elevation, range_min_elevation, resolution = 0.1, return_param = FALSE, scale )
a magick image object or values of azimuth and elevation
a magick image object
Set to true to shade the red, green, and blue components of the image
define maximum in slider of azimuth
define maximum in slider of elevation
resolution of slider
If return_param is TRUE, returns values of azimuth and elevation. If return_param is FALSE, returns a magick image object.
geometry to be passed to image_scale function of magick package. image is scaled just for preview and result image is not scaled if scale is given.
Shota Ochi
# \donttest{ if (interactive()) { interactive_shade(wizard) } # }
Run the code above in your browser using DataLab