Skip to contents

Plot a grid of multiple images.

Usage

ca_img_grid(img_paths, ncol = 3, nrow = 3, height = 300L)

Arguments

img_paths

Vector of paths (can be URLs). Should be of length nrow * ncol.

ncol, nrow

Int, the number of rows and columns

height

Integer specifying the height of the desired plot. Width is scaled proportionally.

Examples

images$imageurl |>
ca_img_grid(ncol = 5, nrow = 1)
#> # A tibble: 1 × 7
#>   format width height colorspace matte filesize density  
#>   <chr>  <int>  <int> <chr>      <lgl>    <int> <chr>    
#> 1 JPEG    2050    300 sRGB       FALSE        0 4096x3000