fig.save: Save Figure

Description Usage Arguments Examples

View source: R/fig.R

Description

This function saves a figure.

Usage

1
2
fig.save(plot, file = "fig", dir = getwd(), width = 5, height = 5,
  res = 600)

Arguments

plot

The figure.

file

A string. The file to save.

dir

A string. The directory.

width, height

The figure dimensions.

res

The figure resolution.

Examples

1
2
3
4
## Not run: 
fig.save(plot(1:5, 1:5), file = "Figure1")

## End(Not run)

tpq/miSciTools documentation built on Sept. 16, 2019, 4:43 p.m.