toNNN: Methods for creating image files of a specific format

Description Usage Arguments Value Windows Metafile Format Author(s) See Also

Description

Methods for creating image files of a specific format.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
   toBMP(name, ...)
   toPDF(name, ...)
   toPNG(name, ...)
   toSVG(name, ...)
   toTIFF(name, ...)
   toEMF(name, ..., ext="emf")
   toWMF(name, ..., ext="wmf")

   toFavicon(..., name="favicon", ext="png",
             field=getDevOption("favicon", "field", default="htmlscript"))

   
   toDefault(name, ...)
   toQuartz(name, ...)
   toX11(name, ...)
   toWindows(name, ...)

   
   toCairoWin(name, ...)
   toCairoX11(name, ...)
   

   
   toRStudioGD(name, ..., .allowUnknownArgs = TRUE)
 

Arguments

name

A character string specifying the name of the image file.

..., .allowUnknownArgs

Additional arguments passed to devEval(), e.g. tags and aspectRatio.

ext, field

Passed to devEval().

Value

Returns by default the DevEvalProduct. For toFavicon() the default return value is a character string.

Windows Metafile Format

Both toEMF() and toWMF() use the exact same graphics device (win.metafile()) and settings. They only differ by filename exension. The win.metafile() device function exists on Windows only; see the grDevices package for more details.

Author(s)

Henrik Bengtsson

See Also

These functions are wrappers for devEval(). See devOptions() to change the default dimensions for a specific device type.


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