write.Image | R Documentation |
Writes the content of an Image
object to a file.
write.Image(x, file, overwrite = FALSE)
x |
An |
file |
A character string naming the path to a file. |
overwrite |
Should the file be overwritten if it already exists? (default: FALSE) |
A message indicating whether writing was successful or not.
The function will guess the format of the output file using the file extension provided by the user.
Simon Garnier, garnier@njit.edu
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")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.