s-news
[Top] [All Lists]

Answers to export.graph question

To: s-news@lists.biostat.wustl.edu
Subject: Answers to export.graph question
From: "Julia Reid" <jreid@myriad.com>
Date: Mon, 12 Mar 2007 11:56:30 -0600
User-agent: Mozilla Thunderbird 0.9 (X11/20041103)

Many thanks to everyone for responses to my question about how to export graphics in a  format other than postscript, using Splus v 7.0.3 for Linux.

Chuck Taylor from Insightful suggested using the java.graph() function.

First, be sure that you start up Splus using the “-j” option to enable Java. Then type help(java.graph, win=T).
Simple example:
java.graph(file=”test.png”, format=”PNG”)

(“export.graph” is found only in S-PLUS for Windows)

Another method suggested by Andreas Krause also works well. It does not offer as many format options as java.graph but does not require starting with the java option.

I use dev.copy to create jpeg and png. Take a look at all available devices by entering
?Devices


Best regards,
Julia

<Prev in Thread] Current Thread [Next in Thread>
  • Answers to export.graph question, Julia Reid <=