gif: GIF graphics device

Description Usage Arguments Value Note Author(s) Examples

View source: R/gif.R

Description

Device driver for GIF images. Internally png() and ImageMagick's convert command is used.

Usage

1
gif(filename="Rplot.gif", width=480, height=480, pointsize=12)

Arguments

filename

filename (character string).

width

width (in pixels) of the saved image (integer).

height

height (in pixels) of the saved image (integer).

pointsize

font size (integer).

Value

A plot device is opened; nothing is returned to the R interpreter.

Note

Requires: ImageMagick (http://www.imagemagick.org) has to be installed on the system. To test whether it is installed or not, try system("convert").

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

Examples

1
2
3
4
5
6
7
8
## Not run: 
  options(imagemagick=c(convert="c:/Program Files/ImageMagick/convert"))
  logo <- BitmapImage$read("logosm.ppm", path = R.graphics$dataPath)
  gif(filename="logosm.gif")
  image(logo)
  dev.off()
 
## End(Not run)

HenrikBengtsson/R.graphics documentation built on May 6, 2019, 11:53 p.m.