emit: Emits a plot to the viewer and to a file. Writes plots to...

Description Usage Arguments Value

View source: R/emit.R

Description

Emits a plot to the viewer and to a file. Writes plots to disk and to screen, fixed size 1024x768 PNG; creates directory if necessary.

Usage

1
2
3
emit(p, tag = "uknnown", path = "plots/", prefix = "sc_",
  suffix = ".png", show_warnings = FALSE, recursive = TRUE,
  width = 1024, height = 768)

Arguments

p

the plot object

tag

a name tag for the plot file, default unknown

path

the disk path prefix, relative, default plots/, must exist and be writable

prefix

plot group name prefix, default sc_ and abbreviation for scorecard.

suffix

plot name suffix, default .png.

show_warnings

whether to show warnings on directory creation, passed to dir.create(), default FALSE

recursive

whether to create path elements other than last, passed to dir.create(), default TRUE

width

plot image width in pixels, default 2014

height

plot image height in pixels, default 768

Value

nothing


greatgray/scorecard documentation built on May 17, 2019, 8:34 a.m.