favicon: Favicon graphics device

Description Usage Arguments Value Author(s) See Also Examples

View source: R/favicon.R

Description

Device driver for PNG favicons (Favorite icon) also known as shortcut icon, Web site icon, tab icon or bookmark icon. This driver is the same as the png driver where some arguments have different default values.

Usage

1
2
favicon(filename="favicon.png", width=32L, height=width, bg="transparent",
  par=list(mar = c(0, 0, 0, 0)), ...)

Arguments

file

Default file name (pattern).

width, height

The width and height of the figure.

par

A named list of graphical parameters to use.

...

Other arguments accepted by png().

Value

A plot device is opened; nothing is returned.

Author(s)

Henrik Bengtsson

See Also

Internally, png is used.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
  favicon(width=32L)

  # is identical to

  suppressWarnings({
    png("favicon.png", width=32L, height=32L, bg="transparent",
                       par=list(mar=c(0,0,0,0)))
  })

## End(Not run)

R.devices documentation built on Oct. 30, 2019, 10:58 a.m.