powered by
Writes the content of an Image object to a file.
Image
write.Image(x, file)
An Image object.
A character string naming the path to a file.
A logical indicating whether writing was successful (TRUE) or not (FALSE).
Image, image
image
# NOT RUN { noise <- image(array(sample(0:255, 100 * 100 * 3, replace = TRUE), dim = c(100, 100, 3))) write.Image(noise, "noise.png") # } # NOT RUN { # }
Run the code above in your browser using DataLab