On Thu, Jun 4, 2009 at 7:53 AM, Harsh <singhalblr@gmail.com> wrote:

> Hi UseRs,
> I recently started working with the RGtk2 library. The documentation
> is comprehensive and I've tried learning from the examples in most Gtk
> tutorials (which have C code). This is a little problematic, but has
> helped quite a bit in getting me started.
>
> I would like to create a GUI for file selection, which then displays
> the column names from the selected file, and provides the user with
> checkboxes with each column name for the user to select. Two columns
> of check boxes (Factor Type, Numeric Type) and one column of names is
> what I would like to display.
>

This would use what is known as a GtkTreeView widget. There is RGtkDataFrame
object that will tie an R data frame directly to a GtkTreeView as its
GtkTreeModel. See help(RGtkDataFrame). Using a GtkTreeView is pretty
complicated, but powerful. Basically, you create your RGtkDataFrame from an
R data.frame and pass it as the model to the gtkTreeView constructor. You
then need to add columns to the tree view to map the data to the view. Your
best bet is to check out the demos included with RGtk2, like "editableCells"
and "treeStore".


>
> Moreover, I am planning to create a GUI tool that would have tabs in a
> notebook layout, each tab providing a certain functionality, beginning
> from basic charting of data, and going on to applying regression
> models and such on the data.
>

help(GtkNotebook)


>
> This requires extensive knowledge in components that RGtk2 provides
> which could be implemented for the task outlined above. I have looked
> at the omegahat.org examples, but would like to see examples for such
> simple tasks as to how one could create a drop down list of column
> names to choose for x axis and another drop down allowing the choice
> of y axis, etc.
>

See help(GtkComboBox) and gtkComboBoxNewText().


>
> Having made the choice to use RGtk2, I would  appreciate if users
> could share their RGtk experience with me.
>

I wrote a paper on RGtk2, but for some reason it has never been published.
Probably time to write a book.


>
> Regards
> Harsh Singhal
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]


