swi_export: swissinfo standard chart size pdf export

Description Usage Arguments

Description

Simple wrapper for R's graphics device driver (i.e. pdf) to save charts in pre-defined sizes

Usage

1
2
3
4
pdfswi_sq(file = "", width = 10, height = 10, useDingbats = FALSE, ...)

pdfswi_long(file = "", width = 6, height = width * 1.25,
  useDingbats = FALSE, ...)

Arguments

file

a character string giving the name of the file. If it is of the form "|cmd", the output is piped to the command given by cmd. If it is NULL, then no external file is created (effectively, no drawing occurs), but the device may still be queried (e.g., for size of text).

For use with onefile = FALSE give a C integer format such as "Rplot%03d.pdf" (the default in that case). (See postscript for further details.)

Tilde expansion (see path.expand) is done.

width

the width and height of the graphics region in inches. The default values are 7.

height

the width and height of the graphics region in inches. The default values are 7.

useDingbats

logical. Should small circles be rendered via the Dingbats font? Defaults to TRUE, which produces smaller and better output. Setting this to FALSE can work around font display problems in broken PDF viewers: although this font is one of the 14 guaranteed to be available in all PDF viewers, that guarantee is not always honoured. See the ‘Note’ for a possible fix for some viewers.

...

arguments passed on to pdf


d-qn/swiTheme documentation built on May 14, 2019, 3:04 p.m.