powered by
Image
image_create() can be used to create an Image object with a desired color and size.
image_create(color, width = 200, heigth = 200, plot = FALSE)
An object of class Image.
either a color name (as listed by grDevices::colors()), or a hexadecimal string of the form "#rrggbb".
grDevices::colors()
"#rrggbb"
The width and heigth of the image in pixel units.
Plots the image after creating it? Defaults to FALSE.
FALSE
image_create("red") image_create("#009E73", width = 300, heigth = 100)
Run the code above in your browser using DataLab