powered by
You'll need ImageMagick for formats other than PNG and JPEG.
save.image(im, file, quality = 0.7)
nothing
an image (of class cimg)
path to file. The format is determined by the file's name
(JPEG only) default 0.7. Higher quality means less compression.
save.video
#Create temporary file tmpF <- tempfile(fileext=".png") #Save boats image save.image(boats,tmpF) #Read back and display load.image(tmpF) %>% plot
Run the code above in your browser using DataLab