image_create() can be used to create an Image
object with a desired color and size.
Arguments
- color
either a color name (as listed by
grDevices::colors()
), or a hexadecimal string of the form"#rrggbb"
.- width, heigth
The width and heigth of the image in pixel units.
- plot
Plots the image after creating it? Defaults to
FALSE
.
Examples
if (interactive() && requireNamespace("EBImage")) {
image_create("red")
image_create("#009E73", width = 300, heigth = 100)
}