| To: | s-news@wubios.wustl.edu |
|---|---|
| Subject: | guiPlot question |
| From: | Eric yang <yang_eric9@yahoo.com> |
| Date: | Thu, 13 Jul 2006 04:59:17 -0700 (PDT) |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=PZ9gca4ZKX4p3Fjc/OcQ24ct0XHg8Oi2L2edH6kjUR9+iUNqEUy+riNXXgl3m8NCrHnj+jUttrx0LWjrm7FTgfY7XW6xIjOikSfw+sMGPeJ8McsBjtZ2Bs0wcNfYAdC70TgL/iQiXTB4hDcnMgXjRkJ8sSgTPrrsmN5DRwhpqto= ; |
|
Dear members, I have question related to guiPlot called within a function. The following example works fine: my.variables <- data.frame(runif(10), runif(10), runif(10)) guiPlot("3D Scatter", DataSetValues = my.variables) guiModify("Axes3D", Name = "1", xTitleText = "Name of variable 1", yTitleText = "Name of variable 2", zTitleText = "Name of variable 3") guiCreate("MainTitle", Name = "1", Title = "3D Scatter Plot") However, if I define the function: plot.function <- function(my.data) { guiPlot("3D Scatter", DataSetValues = my.data) guiModify("Axes3D", Name = "1", xTitleText = names(my.data)[1], yTitleText = names(my.data)[2], zTitleText = names(my.data)[3]) guiCreate("MainTitle", Name = "1", Title = "3D Scatter Plot") guiCreate("Grid3D", Name = guiGetPlotName(), ProjectionPlane = "XY", Position = "0.0") } And, rename the variables names(my.variables) <- c( "Name of variable 1", "Name of variable 2", "Name of variable 3") The following command: plot.function(my.variables) gives the error: Problem in guiPlot("3D Scatter", DataSetValues = my.data): A name is required in order to assign an object to a database I don't know what this error means. I'd appreciate any help on this subject. Thanks in advance. Eric
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | CODA in Splus, Hendry Raharjo |
|---|---|
| Next by Date: | Question about memory allocation error, Brian Wu |
| Previous by Thread: | CODA in Splus, Hendry Raharjo |
| Next by Thread: | Question about memory allocation error, Brian Wu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |