plot_image {rayimage} | R Documentation |
Plot Image
Description
Displays the image in the current device.
Usage
plot_image(
image,
rotate = 0,
draw_grid = FALSE,
asp = 1,
new_page = TRUE,
return_grob = FALSE
)
Arguments
image |
Image array or filename of an image to be plotted. |
rotate |
Default 0. Rotates the output. Possible values: 0, 90, 180, 270. |
draw_grid |
Default |
asp |
Default |
new_page |
Default |
return_grob |
Default |
Examples
#if(interactive()){
#Plot the dragon array
plot_image(dragon)
#Make pixels twice as wide as tall
plot_image(dragon, asp = 2)
#Plot non-square images
plot_image(dragon[1:100,,])
#Make pixels twice as tall as wide
plot_image(dragon[1:100,,], asp = 1/2)
#end}
[Package rayimage version 0.11.0 Index]