There's an error in my S-Plus code that I haven't found a solution to
and I'm hoping someone can help me out. with.
I have a function that contains several uses of guiCreate() and
guiModify() to build some graphsheet graphics.
This is done with S-Plus 6.2 for Windows.
The error seems to be that the DataSet parameter is not recognised
inside guiCreate(). I've tried several different ways and none seem to work.
From my debugging print outs it appears that the data set is passed in
and the correct column names are present.
The error messages say otherwise and the resulting graph has no points
plotted.
I've tried using the dataSet without quote marks - get an error.
Tried putting quote marks around xName - get an error.
Can you offer any suggestions?
-------------------
Here is the code
---------------------
gofPlotIdentityReference <- function(dataSet, drugName, drugUnit, xName,
yName, zName) {
print(paste("names(dataSet) is", names(dataSet)))
print(paste("xName is", xName))
print(paste("class(xName) is", class(xName)))
# description of the DV
label <- paste(drugName, "Concentration", drugUnit)
graphsheet(pages="every graph", Name="Diagnostic Plots", object.mode="fast")
guiCreate( "LinePlot", Name = "Diagnostic Plots$1$1",
PlotNumber = "1",
DataSet = "dataSet",
xColumn = xName,
yColumn = yName,
zColumn = zName,
LineStyle = "Dots",
LineColor = "Black",
SymbolStyle = "Plus X",
SymbolFreq = "1",
SymbolColor = "Black")
... # more creates and modifies here but taking them out gets same basic
error.
}
---------------------------
Error message that I get is:
-----------------------------
WARNING: Cannot find column: PRED. The data set cannot be found or it
does not contain the specified column.
WARNING: Cannot find column: DV. The data set cannot be found or it
does not contain the specified column.
WARNING: Cannot find column: DV. The data set cannot be found or it
does not contain the specified column.
WARNING: Cannot find column: DV. The data set cannot be found or it
does not contain the specified column.
WARNING: Cannot find column: DV. The data set cannot be found or it
does not contain the specified column.
WARNING: Cannot find column: DV. The data set cannot be found or it
does not contain the specified column.
WARNING: Cannot find column: ID. The data set cannot be found or it
does not contain the specified column.
--------------------------------
Report window output includes:
---------------------------------
ID DATA ITEM PRESENT
[1] "names(dataSet) is ID" "names(dataSet) is DOSM"
[3] "names(dataSet) is DAY" "names(dataSet) is TSLD"
[5] "names(dataSet) is KA" "names(dataSet) is CL"
[7] "names(dataSet) is V" "names(dataSet) is NUM"
[9] "names(dataSet) is IPRED" "names(dataSet) is IRES"
[11] "names(dataSet) is IWRES" "names(dataSet) is DV"
[13] "names(dataSet) is PRED" "names(dataSet) is RES"
[15] "names(dataSet) is WRES"
[1] "xName is PRED"
[1] "class(xName) is character"
|