s-news
[Top] [All Lists]

Printing GraphSheet to a pdf file

To: s-news@lists.biostat.wustl.edu
Subject: Printing GraphSheet to a pdf file
From: "Data Analytics Corp." <dataanalytics@earthlink.net>
Date: Wed, 05 Dec 2007 08:11:10 -0500
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=B2PE6iFi0aHSOZmCTzwAEluqhf2GMPCEq2ORqo6AnvwbjmcichhQMQ30LjI/tnl2; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP;
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)
Good morning,

I want to do something very simple. I created a function to produce multiple graphs, say 25. All 25 are visible as separate pages. Using some previous suggestions for how to move about the pages programmatically, I can write another function to select specific pages, say page 15. I now want to print that specific page to a pdf file. The function I tried is:

fn.pdf <- function(){
  pdf.graph(file = "test.pdf")
  guiModify("GraphSheet", Name = "guiGetGSName(), CurrentPage = "Page15")
  guiPrint("GraphSheet")
  dev.off()
}

The file test.pdf is created, but it's empty. How do I print page 15 to the pdf file? Any suggestions?

Thanks,

Walt Paczkowski

<Prev in Thread] Current Thread [Next in Thread>