posted 12 years ago
Hi Augusto,
When you run R interactively, you have the choice of directing a graph to device window (the default) and/or saving it to a pdf, png, jpeg or postscript file. Multiple images can be saved in a single pdf. On windows, you can also save the image as a windows metafile (wmf) or bmp file.
So for example, if I execute the command
plot(mygraph)
at an interactive prompt, a window will pop open with the graph displayed. I can save the file to multiple formats from menu options in that window.
If I execute the command
png("mygraph.png")
at an interactive prompt, the graph is saved to the file mygraph.png.
If you run an R script in batch, then you would want to write the graph to a file.
BTW, there are R packages (e.g., R2HTML) that will help you to embed R graphics in web pages easily.
R is not a JVM language.