plot_image_grid: Plot Image Grid

View source: R/plot_image_grid.R

plot_image_gridR Documentation

Plot Image Grid

Description

Displays the image in the current device.

Usage

plot_image_grid(input_list, dim = c(1, 1))

Arguments

input_list

List of array (or matrix) image inputs.

dim

Default c(1,1). Width by height of output grid.

Examples

if(rayimage:::run_documentation()){
#Plot the dragon array
plot_image_grid(list(dragon, dragon), dim = c(1,2))
}
if(rayimage:::run_documentation()){
plot_image_grid(list(dragon, dragon), dim = c(2,1))
}
if(rayimage:::run_documentation()){
plot_image_grid(list(dragon, dragon), dim = c(2,2))
}
if(rayimage:::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))
}

rayimage documentation built on Jan. 17, 2023, 9:07 a.m.