ggimg_grid: Plot a grid of images

View source: R/ggimg_grid.R

ggimg_gridR Documentation

Plot a grid of images

Description

Plot a grid of images

Usage

ggimg_grid(imgs, scale = 0.001, fun = NULL, ...)

Arguments

imgs

vector of paths to images

scale

scaling factor used to display the images; from pixels to plot dimensions (in [0,1]).

fun

function to apply to each image, as a pre-processing step (a typical one is img_chop() to remove a scale bar added to the image).

...

passed to fun.

Examples

paths <- list.files(system.file("extdata", "plank",
                    package="morphr"), full.names=TRUE)
ggimg_grid(imgs=sample(paths, 15), scale=0.002)
ggimg_grid(imgs=sample(paths, 56), scale=0.001)

jiho/morphr documentation built on May 11, 2024, 9:32 p.m.