Programming Graphical User Interfaces with R introduces each of the major R packages for GUI programming: RGtk2, qtbase, Tcl/Tk, and gWidgets. With examples woven through the text as well as stand-alone demonstrations of simple yet reasonably complete applications, the book features topics especially relevant to statisticians who aim to provide a practical interface to functionality implemented in R. The book offers:

  • A how-to guide for developing GUIs within R
  • The fundamentals for users with limited knowledge of programming within R and other languages
  • GUI design for specific functions or as learning tools

The accompanying package, ProgGUIinR, includes the complete code for all examples as well as functions for browsing the examples from the respective chapters. Accessible to seasoned, novice, and occasional R users, this book shows that for many purposes, adding a graphical interface to one’s work is not terribly sophisticated or time consuming.

part I|78 pages

The gWidgets Package

chapter 2|12 pages

gWidgets: Overview

chapter 3|13 pages

gWidgets: Container Widgets

chapter 4|39 pages

gWidgets: Control Widgets

chapter 5|10 pages

gWidgets: R-specific Widgets

part II|124 pages

The RGtk2 Package

chapter 6|12 pages

RGtk2: Overview

chapter 7|21 pages

RGtk2: Windows, Containers, and Dialogs

chapter 8|28 pages

RGtk2: Basic Components

chapter 9|39 pages

RGtk2: Widgets Using Data Models

chapter 10|16 pages

RGtk2: Application Windows

chapter 11|4 pages

Extending GObject Classes

part III|118 pages

The qtbase Package

chapter 12|22 pages

Qt: Overview

chapter 13|14 pages

Qt: Layout Managers and Containers

chapter 14|29 pages

Qt: Widgets

chapter 15|41 pages

Qt: Widgets Using Data Models

chapter 16|8 pages

Qt: Application Windows

part IV|103 pages

The tcltk Package

chapter 17|23 pages

Tcl/Tk: Overview

chapter 4|20 pages

Tcl/Tk: Layout and Containers

chapter 19|20 pages

Tcl/Tk: Dialogs and Widgets

chapter 20|37 pages

Tcl/Tk: Text, Tree, and Canvas Widgets