s-news
[Top] [All Lists]

Working with graphsheets and multiple pages

To: S-News <s-news@lists.biostat.wustl.edu>
Subject: Working with graphsheets and multiple pages
From: Thom Burnett <Thom.Burnett@cognigencorp.com>
Date: Mon, 10 Oct 2005 10:03:48 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
I am generating a graphsheet with multiple pages (i.e. CP vs TSLD by STUDY). I would like each page of the graphsheet to have specific attributes (i.e. title, subtitle, footnote, reference line, etc.) based on the study. My script needs to be able to be run interactively and/or in batch. I could code each page separately, but am looking for a more elegant, data-driven solution. My attempts so far have have been unsuccessful, resulting in constant attributes on all pages or as errors.

The following code creates the base graphs successfully, with the resulting graphs named in object explorer as GS1$Page1, GS1$Page2, etc.

guiPlot( PlotType = "Scatter", DataSet = "df", Columns = "CP,TSLD", AxisType = "Linear")
guiModify( "Graph2D", Name = "GS1$1",    PanelType = "Condition", ConditionColumns = "STUDY",    TrellisConditionDS = "df")
guiModify( "Graph2D", Name = "GS1$1",    NumberOfPanelColumns = "1",    NumberOfPanelRows = "1")

I then want to add the specific attributes to each page.

guiCreate( "Subtitle", Name = "GS1$Page2",    Title = titleTwo )
-results: titleTwo shows on ALL pages not just page 2

guiCreate( "Subtitle", Name = "GS1$1$Page2",    Title = titleTwo )
 -results: an error saying there's no such page.

I've tried many other page identifications without success.

I'm working with SPlus 7.0 using Windows 2000.

Thanks.
<Prev in Thread] Current Thread [Next in Thread>
  • Working with graphsheets and multiple pages, Thom Burnett <=