webPNG {CGIwithR}R Documentation

A Wrapper for the `bitmap' Graphics Device

Description

webPNG sets up a bitmap graphics device for graphs drawn within a CGI script.

Usage

webPNG(file, ...)

Arguments

file A filename, as a character string
... Any other arguments to bitmap

Details

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.

Value

None (invisible(NULL))

Author(s)

David Firth d.firth@warwick.ac.uk

See Also

img

Examples


  graphDir <- "/users/david/public_html/graphs/"
  webPNG("mygraph.png")
  ## then do whatever plotting is required...
  

[Package Contents]