[S] graphsheet(background.color in graphs

Jean Adams (Jean_Adams@usgs.gov)
Wed, 21 Oct 1998 14:48:50 -0600



I am trying to define a function which calls graphsheet() with a
specified color scheme and a dark blue background. I have no problem
specifying any of the colors except for the background color. In the
graphsheet() help file, not much information is given on how to fix
the background color:
background.color - background color of the graph sheet. This
will override the background color indicated by color.style.

When I define the function as
graph.slide <- function(...)
graphsheet(..., background.color="8,29,88",
color.table="250,253,0|0,0,0")
and run the program
graph.slide()
plot(1:10, 1:10)
I get a yellow plot on a white (not the requested dark blue)
background and the following warning message (twice)
WARNING: Property TXPROP_GraphSheetColor or Argument
GraphSheetColor has no option 8,29,88.

When I try the function as
graph.slide <- function(...)
graphsheet(..., background.color=c(8, 29, 88),
color.table="250,253,0|0,0,0")
I get the following error message
Error in graphsheet(background.color = c(8, 29, 88), colo..:
arguments not all scalars: background.color, color
Dumped

If you can successfully set the background color, I'd greatly
appreciate it if you let me know how. Thanks.

(I am using S-PLUS 4.5 Pro. rel. 2 on Windows 95.)

JVA


Jean V. Adams U.S. Geological Survey
e-mail: jean_adams@usgs.gov Great Lakes Science Center
phone: (734) 214-9307 1451 Green Road
FAX: 734-994-8780 Ann Arbor, MI 48105-2899 USA

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news