Skip to content
Prev 17986 / 398502 Next

R on the web

Arne Mueller <a.mueller at icrf.icnet.uk> wrote:
One possibility is to generate a pdf file, then redirect the user's browser to
that file.  Here are a few relevant lines from such a cgi script:

## Inside the R code:
  pdf("mynewgraph.pdf")
  ## Graphics commands
  dev.off()
## After R has run:
  print "<META HTTP-EQUIV=Refresh CONTENT='0; URL=mynewgraph.pdf'>";