ppng: ppng

ppngR Documentation

ppng

Description

sends quick plot to ~public_html/plot.png. If PPNG.DIR env variable defined, then will send to that directory (i.e. instead of public_html) Useful for doing quick standard plots to a static location which one views through tabs in Chrome or other web browser.

Usage

ppng(
  expr,
  filename = "plot.png",
  height = 1000,
  width = 1000,
  dim = NULL,
  cex = 1,
  title = NULL,
  cex.pointsize = min(cex),
  cex.title = 1,
  ...
)

Arguments

expr

Plotting expression eg plot(runif(1000), runif(1000))

filename

filename under ~/public_html/ or Sys.getenv('PPNG.DIR') to dump plots to (='plot.png')

height

integer pixel height of plot (=1000)

width

integer pixel width of plot (=1000)

dim

length 2 integer vector, if expr contains multiple plot calls then will output to matrix of plots with specified dim (=NULL)

cex

expansion factor of plot from "default size" either length 1 scalar or length 2 vector specifying height and width expansion (=1)

title

title to add to plot (=”)

cex.title

character expansion factor to title)

...

additional arguments to png()

Author(s)

Marcin Imielinski


mskilab/skitools documentation built on Aug. 31, 2023, 1:13 p.m.