s-news
[Top] [All Lists]

Re: Extract multiple graphsheets from single file?

To: "s-news" <s-news@lists.biostat.wustl.edu>
Subject: Re: Extract multiple graphsheets from single file?
From: "Thompson, David (MNR)" <David.John.Thompson@ontario.ca>
Date: Thu, 24 May 2007 16:59:14 -0400
In-reply-to: <ECF21B71808ECF4F8918C57EDBEE121DBE9000@CTSPITDCEMMVX11.cihs.ad.gov.on.ca>
References: <ECF21B71808ECF4F8918C57EDBEE121DBE9000@CTSPITDCEMMVX11.cihs.ad.gov.on.ca>
Thread-index: AceeM0aWYz+apqbIRQOY8gqhPbFLqwAEYdMA
Thread-topic: [S] Extract multiple graphsheets from single file?

Hello again,

I dove back into the archives again with a little better luck.
Found this excellent post:
        www.biostat.wustl.edu/archives/cgi-bin/mesg.cgi?a=s-news&i=4384786F.8000505%40blackmesacapital.com
        Subject:        Re: dev.copy on tabbed graphsheet device
        From:   Tony Plate
        Date:   Wed, 23 Nov 2005 07:10:55 -0700

. . .  which led me to trying this:
        gsname <- list(guiGetObjectNames("GraphSheetPage", guiGetGSName()))
        for(i in gsname) {
                pname <- substring(i, nchar(guiGetGSName())+2)
                fname <- paste(pname, ".wmf", sep="")
                guiModify("GraphSheet", Name=guiGetGSName(), CurrentPage=pname)
                export.graph(FileName=fname, Name=guiGetGSName(), ExportType="WMF")
        }       # gsname for graphsheet, pname for page, fname for file

. . . and a variety of permutations with no luck.

This code did generate a pair of character vectors, pname and fname, and did seem to
ripple through the graphsheetpages, but I get no files output. Suggestions?

By the way, I cannot confirm that each page in the .sgr file is actually activated.

Thanks again, DaveT.
*************************************
Silviculture Data Analyst
Ontario Forest Research Institute
Ontario Ministry of Natural Resources
david.john.thompson@ontario.ca
http://ofri.mnr.gov.on.ca
*************************************
-----Original Message-----
From: s-news-owner@lists.biostat.wustl.edu [
mailto:s-news-owner@lists.biostat.wustl.edu] On Behalf Of Thompson, David (MNR)
Sent: May 24, 2007 02:43 PM
To: s-news
Subject: [S] Extract multiple graphsheets from single file?

Hello,

I have created a graph with many (48) graphsheets that each contain
two pairs of rf- and qq-plots with mods.

Is there an easy, quick, safe way to split this into multiple graphs?
Perhaps files with groups of eight pages (or even singles) per file?

Thanks, DaveT.
*************************************
Silviculture Data Analyst
Ontario Forest Research Institute
Ontario Ministry of Natural Resources
david.john.thompson@ontario.ca
http://ofri.mnr.gov.on.ca
*************************************
--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news

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