pdfpng: Plot to pdf and png

Description Usage Arguments Value Author(s) Examples

View source: R/file-names.R

Description

Plot to the pdf and png devices at once.

Usage

1
pdfpng(expr, fn)

Arguments

expr

A quoted expression that produces the desired plot.

fn

The file name (without extension).

Value

Produces the files fn.pdf and fn.png.

Author(s)

Laurent Gatto

Examples

1
2
3
4
5
p <- quote({
   plot(1:10)
   points(10:1)
})
pdfpng(p, "myfig")

ComputationalProteomicsUnit/cputools documentation built on May 6, 2019, 12:50 p.m.