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

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758201374, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/png(55): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78