Learn R Programming

imager (version 0.42.10)

plot.imlist: Plot an image list

Description

Each image in the list will be plotted separately. The layout argument controls the overall layout of the plot window. The default layout is "rect", which will fit all of your images into a rectangle that's as close to a square as possible.

Usage

# S3 method for imlist
plot(x, layout = "rect", ...)

Arguments

x

an image list (of type imlist)

layout

either a matrix (in the format defined by the layout command) or one of "row","col" or "rect". Default: "rect"

...

other parameters, to be passed to the plot command

Examples

Run this code
# NOT RUN {
imsplit(boats,"c") #Returns an image list
imsplit(boats,"c") %>% plot
imsplit(boats,"c") %>% plot(layout="row")
imsplit(boats,"c") %>% plot(layout="col")
imsplit(boats,"x",5) %>% plot(layout="rect")
# }

Run the code above in your browser using DataLab