pngBitmap

Share:

Description

savely opening a png Device

Usage

1
pngBitmap(fileName, ...)

Arguments

fileName

string scalar: the output file name

...

further arguments to png or bitmap

Details

On unix systems without X11 png using a graphics window fails, while on Windows systems bitmap using possibly missing ghostscript fails.

pngBitmap tries both approaches.

Author(s)

Thomas Wutzler

Examples

1
2
3
4
5
if( FALSE ){    # do not execute on INSTALL
    pngBitmap("test1.png")
    plot(1:5,5:1)
    dev.off()
}

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.