Search notes:

R function: png


#   Create first png file
#
x <- rnorm(10000)
png(file='rnorm_300x200.png', width=300, height=200)
hist(x)
invisible(dev.off())

#   Create second png file
#
x <- rnorm(50000)
png(file='rnorm_600x400.png', width=600, height=400)
hist(x)
invisible(dev.off())
Github repository about-r, path: /functions/png.R

See also

Saving graphics/plots to files
Index to (some) R functions

Index