| webPNG {CGIwithR} | R Documentation |
webPNG sets up a bitmap graphics device for graphs drawn within
a CGI script.
webPNG(file, ...)
file |
A filename, as a character string |
... |
Any other arguments to bitmap |
Before webPNG is called, the variable
graphDir must be a character string giving the location
where graphics files will be written by R and found by the web server.
The directory specified in graphDir must be writeable and
readable by the web server in order to work. For example, if
graphDir is "/users/david/public_html/graphs/" (note
the trailing /!), and if file is "mygraph.png",
the next graph will be written to
"/users/david/public_html/graphs/mygraph.png", provided that
/users/david/public_html/graphs has suitable permissions.
None (invisible(NULL))
David Firth d.firth@warwick.ac.uk
## Not run:
graphDir <- "/users/david/public_html/graphs/"
webPNG("mygraph.png")
## then do whatever plotting is required...
## End(Not run)