View source: R/plot_image_grid.R
plot_image_grid | R Documentation |
Displays the image in the current device.
plot_image_grid(input_list, dim = c(1, 1), asp = 1, draw_grid = FALSE)
input_list |
List of array (or matrix) image inputs. |
dim |
Default |
asp |
Default |
draw_grid |
Default |
if(run_documentation()){
#Plot the dragon array
plot_image_grid(list(dragon, 1-dragon), dim = c(1,2))
}
if(run_documentation()){
plot_image_grid(list(dragon, 1-dragon), dim = c(2,1))
}
if(run_documentation()){
plot_image_grid(list(dragon, NULL, 1-dragon), dim = c(2,2), asp = c(2,1,1/2))
}
if(run_documentation()){
plot_image_grid(list(dragon, NULL, NULL, dragon), dim = c(2,2), asp = c(2,1,1,1/2))
}
if(run_documentation()){
#Plot alongside the depth matrix
dragon_depth_reoriented = render_reorient(dragondepth,
transpose = TRUE,
flipx = TRUE)/2000
plot_image_grid(list(dragondepth/2000, dragon, dragon, dragondepth/2000),
dim = c(2,2))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.