Harsh
2009-Jun-04 14:53 UTC
[R] RGtk2 help: Show list of column names from dataset and categorize as factor or numeric
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. 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. 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. Having made the choice to use RGtk2, I would appreciate if users could share their RGtk experience with me. Regards Harsh Singhal
Ronggui Huang
2009-Jun-04 15:08 UTC
[R] RGtk2 help: Show list of column names from dataset and categorize as factor or numeric
I use gWidgetsRGtk2, which provides widgets such as notebook etc. You can start with gWidgetsRGtk2, and if you want to tailor the GUI according to your needs, you can modified them with RGtk2 package. Ronggui 2009/6/4 Harsh <singhalblr at gmail.com>:> 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. > > 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. > > 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. > > Having made the choice to use RGtk2, I would ?appreciate if users > could share their RGtk experience with me. > > Regards > Harsh Singhal > > ______________________________________________ > R-help at 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. >-- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html
Michael Lawrence
2009-Jun-05 02:24 UTC
[R] RGtk2 help: Show list of column names from dataset and categorize as factor or numeric
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]]