| To: | s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | graph |
| From: | "Smeets, S (Sjoerd)" <S.Smeets@Interpolis.nl> |
| Date: | Fri, 17 Sep 2004 15:29:24 +0200 |
| Thread-index: | AcSculjmIrzBQ+09QKGS6QilAXPXgg== |
| Thread-topic: | graph |
|
Hi, I have got a function that exports graphs to excel. want to export files that are made using the function guiPlot but this doesn´t work for some reason. They are stored in an other object: the plots in the example in GSD2 and the guiPlots in GS1. Then I looked in the Programmers guide to S-plus but I can not find a way to make a bar y min base plot using a function. Could you tell me how to proceed so that the exporting to excel will work? My current graphs are created in the following way: guiPlot( PlotType = "Bar Y Min Base", DataSet = "d1.subsubobject", Columns =
FillColor = "Transparent", xPosition = "0.303297", yPosition = "7.61538"
And is it also possible to let the axis of the lineplot (RelativeAxisY) start at the value 0 and end at the value 10? The export to excel function look like the following: GraphsToExcel <- function(g.files) {
# Function to save a workbook in Excel under a new name
ExcelVisible <- get.ole.property( pExcel, "visible" )$visible
pWorkBooks <- get.ole.property( pExcel, "workbooks" )[[1]]
for (sheet in 1:length(g.files)){ # This adds a new sheet to excel!
# Just let the file system catch up!
call.ole.method( pSheets$She, "Add")
pShapes <- get.ole.property( pActiveSheet, "Shapes")
# Quit Excel with no prompts # release.ole.object( pRange )
invisible()
Kind regards, Sjoerd Smeets ================================================ |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Graphical representation of variable, Jean V Adams |
|---|---|
| Next by Date: | scoping problem (?) with nlminb and integrate, Jeff Simonoff |
| Previous by Thread: | Splus NuOpt for S-PLUS Version 1.4.6.3, Steve Su |
| Next by Thread: | scoping problem (?) with nlminb and integrate, Jeff Simonoff |
| Indexes: | [Date] [Thread] [Top] [All Lists] |