plotPNG

0th

Percentile

Run a plotting function and save the output as a PNG

This function returns the name of the PNG file that it generates. In essence, it calls png(), then func(), then dev.off(). So func must be a function that will generate a plot when used this way.

Usage
plotPNG(func, filename = tempfile(fileext = ".png"), width = 400,
  height = 400, res = 72, ...)
Details

For output, it will try to use the following devices, in this order: quartz (via png), then CairoPNG, and finally png. This is in order of quality of output. Notably, plain png output on Linux and Windows may not antialias some point shapes, resulting in poor quality output.

In some cases, Cairo() provides output that looks worse than png(). To disable Cairo output for an app, use options(shiny.usecairo=FALSE).

Aliases
Documentation reproduced from package shiny, version 0.9.1, License: GPL-3

Community examples

Looks like there are no examples yet.