s-news
[Top] [All Lists]

Re: Incorporating GuiPlot in a function

To: "Vignesh Panchanatham" <vkpanch@yahoo.com>, <s-news@lists.biostat.wustl.edu>
Subject: Re: Incorporating GuiPlot in a function
From: "Park, Richard" <Richard.Park@joslin.harvard.edu>
Date: Tue, 17 Jun 2003 16:27:45 -0400
Thread-index: AcM1AG8+v0zFFTyaS7+XFoaR/I8PBQAAfP4A
Thread-topic: [S] Incorporating GuiPlot in a function
Hi Vig, 
It took me a while to figure out the guiPlot function, but I found that you 
need to save the data.frame to the data directory in s after you have completed 
all of your data manipulations using the assign function, otherwise data 
manipulations are not seen. 

### example of code that i've used ###
assign(save.name, object, where = 1)
gsname <- guiPlot(PlotType="Scatter", DataSet=*save.name*, AxisType="Log Log", 
Columns=cols, Graph=graph.num)

Using guiPlot allows for creation of interactive graphs where you can use the 
various graph tools to select data points from a data.frame. I have found that 
this sometimes not as stable as the regular plot functions. 

If you don't need the specific graph tools, I would advise using the regular 
plot function. 

hope this helps, 
Richard Park 
Computational Data Analyzer
Joslin Diabetes Center

-----Original Message-----
From: Vignesh Panchanatham [mailto:vkpanch@yahoo.com]
Sent: Tuesday, June 17, 2003 14:42 PM
To: s-news@lists.biostat.wustl.edu
Subject: [S] Incorporating GuiPlot in a function


Hi,

Does anyone have experience with incorporating the Gui
commands (like GuiPlot) within a function? How does
GuiPlot deal with additional data manipulations to the
original dataframe? 

The problem I am experiencing is that if I give the
function the name of a dataframe and then do some
filtering operations on the dataframe within the
function, GuiPlot uses the original (unfiltered)
dataframe for plotting and not the modified dataframe.
How do I get it to use the modified dataframe without
having to save the dataframe externally?

Thanks,
Vig 

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>