Learn R Programming

rrtable (version 0.1.0)

plotPDF2: Make pdf file with a plot code

Description

Make pdf file with a plot code

Usage

plotPDF2(fun, file, width = 7, height = 5, units = "in", res = 300,
  ggplot = FALSE)

Arguments

fun

A R code for plot

file

A path of destination file

width

A plot width

height

A plot height

units

The units in which height and width are given. Can be px (pixels, the default), in (inches), cm or mm.

res

The nominal resolution in ppi

ggplot

A logical. Set this argument true if the R code is for ggplot