| plot_image | R Documentation |
Displays the image in the current device.
plot_image(
image,
draw_grid = FALSE,
ignore_alpha = FALSE,
asp = 1,
new_page = TRUE,
return_grob = FALSE,
gp = grid::gpar(),
angle = 0,
show_linear = FALSE
)
image |
3-layer RGB/4-layer RGBA array, |
draw_grid |
Default |
ignore_alpha |
Default |
asp |
Default |
new_page |
Default |
return_grob |
Default |
gp |
A |
angle |
Default |
show_linear |
Default |
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.