On Sun, Oct 3, 2010 at 9:34 AM, Felipe Carrillo
<mazatla...@yahoo.com> wrote:
> Hi:
> I read about Deducer when it first came out but I just now gave it a
> try. I have to say that it is
> a great way for newbies to plot their data without having to type or
> know anything about R. I do have
> a couple of questions though;
> 1 - Is there a way to see the code generated when a user clicks on the
> any of the menus?
The code is sent to the console when you hit 'Run', so you can see it
there. In the plot builder there is a menu item 'view call' that
displays the generated code.
> 2- Rcmdr has a dropdown combo box where the user can select datasets
> from loaded packages to practice; does Deducer have that option? If
> not, could that be included?
There currently is not, but it is very easy to implement. Here is the code:
.makePackageDataDialog <- function(){
dat <- data()$results
RFunction <- J("org.rosuda.deducer.widgets.param.RFunction")
RFunctionDialog <- J("org.rosuda.deducer.widgets.param.RFunctionDialog")
ParamCharacter <- J("org.rosuda.deducer.widgets.param.ParamCharacter")
rf <- new(RFunction,"data")
rf$setTitle("Load Data From Package")
p <- new(ParamCharacter,"data")
p$setTitle("Data set")
p$setOptions(dat[,3])
p$setLabels(dat[,4])
p$setViewType(p$VIEW_COMBO)
rf$add(p)
rfd <- new(RFunctionDialog, rf)
rfd$setSize(250L,125L)
rfd$setLocationRelativeTo(.jnull())
rfd
}
jgr.insertMenuItem("File","Load Package Data Set",
".makePackageDataDialog()$run()",3)
I will include this dialog in the next version of the DeducerExtras package.
Ian
ian
On Sun, Oct 3, 2010 at 11:51 AM, Felipe Carrillo
ian