17
$\begingroup$

While preparing for a talk I will give soon, I recently started digging into two major (Free) tools for interactive data visualization: GGobi and mondrian - both offer a great range of capabilities (even if they're a bit buggy).

I wish to ask for your help in articulating (both to myself, and for my future audience) When is it helpful to use interactive plots? Either for data exploration (for ourselves) and data presentation (for a "client")?

For when explaining the data to a client, I can see the value of animation for:

  • Using "identify/linking/brushing" for seeing which data point in the graph is what.
  • Presenting a sensitivity analysis of the data (e.g: "if we remove this point, here is what we will get)
  • Showing the effect of different groups in the data (e.g: "let's look at our graphs for males and now for the females")
  • Showing the effect of time (or age, or in general, offering another dimension to the presentation)

For when exploring the data ourselves, I can see the value of identify/linking/brushing when exploring an outlier in a dataset we are working on.

But other then these two examples, I am not sure what other practical use these techniques offer. Especially for our own data exploration!

It could be argued that the interactive part is good for exploring (For example) a different behavior of different groups/clusters in the data. But when (in practice) I approached such situation, what I tended to do was to run the relevant statistical procedures (and post-hoc tests) - and what I found to be significant I would then plot with colors clearly dividing the data to the relevant groups. From what I've seen, this is a safer approach then "wondering around" the data (which could easily lead to data dredging (were the scope of the multiple comparison needed for correction is not even clear).

I'd be very happy to read your experience/thoughts on this matter.

(this question can be a wiki - although it is not subjective and a well thought-out answer will gladly win my "answer" mark :) )

$\endgroup$
  • 3
    $\begingroup$ At least in my case, I'm somewhat in the same boat. I appreciate Mondrian and keep it up to date, but when I actually explore a new dataset it tends to be in R, which is less interactive but more flexible overall. I started writing you a full answer and realized that I was speaking in the theoretical and not from actual experience. $\endgroup$ – Wayne Feb 10 '11 at 17:14
8
$\begingroup$

In addition to linking quantitative or qualitative data to spatial patterns, as illustrated by @whuber, I would like to mention the use of EDA, with brushing and the various of linking plots together, for longitudinal and high-dimensional data analysis.

Both are discussed in the excellent book, Interactive and Dynamic Graphics for Data Analysis With R and GGobi, by Dianne Cook and Deborah F. Swayne (Springer UseR!, 2007), that you surely know. The authors have a nice discussion on EDA in Chapter 1, justifying the need for EDA to "force the unexpected upon us", quoting John Tukey (p. 13): The use of interactive and dynamic displays is neither data snooping, nor preliminary data inspection (e.g., purely graphical summaries of the data), but it is merely seen as an interactive investigation of the data which might precede or complement pure hypothesis-based statistical modeling.

Using GGobi together with its R interface (rggobi) also solves the problem of how to generate static graphics for intermediate report or final publication, even with Projection Pursuit (pp. 26-34), thanks to the DescribeDisplay or ggplot2 packages.

In the same line, Michael Friendly has long advocated the use of data visualization in Categorical Data Analysis, which has been largely exemplified in the vcd package, but also in the more recent vcdExtra package (including dynamic viz. through the rgl package), which acts as a glue between the vcd and gnm packages for extending log-linear models. He recently gave a nice summary of that work during the 6th CARME conference, Advances in Visualizing Categorical Data Using the vcd, gnm and vcdExtra Packages in R.

Hence, EDA can also be thought of as providing a visual explanation of data (in the sense that it may account for unexpected patterns in the observed data), prior to a purely statistical modeling approach, or in parallel to it. That is, EDA not only provides useful ways for studying the internal structure of the data at hand, but it may also help to refine and/or summarize statistical models applied on it. It is in essence what biplots allow to do, for example. Although they are not multidimensional analysis techniques per se, they are tools for visualizing results from multidimensional analysis (by giving an approximation of the relationships when considering all individuals together, or all variables together, or both). Factor scores can be used in subsequent modeling in place of the original metric to either reduce the dimensionality or to provide intermediate levels of representation.

Sidenote

At risk of being old-fashionned, I'm still using xlispstat (Luke Tierney) from time to time. It has simple yet effective functionalities for interactive displays, currently not available in base R graphics. I'm not aware of similar capabilities in Clojure+Incanter (+Processing).

$\endgroup$
8
$\begingroup$

Dynamic linking of graphics is natural and effective for exploratory spatial data analysis, or ESDA. ESDA systems typically link one or more quantitative maps (such as choropleth maps) with tabular views and statistical graphics of the underlying data. Some such capabilities have been a part of a few desktop GIS systems for about 15 years, particularly ArcView 3 (a discontinued commercial product). The free GeoDa software provides some of these capabilities within an environment designed for spatial data exploration and statistical analysis. It's clunky, with an idiosyncratic interface and unpolished graphics, but fairly bug free.

This use of EDA circumvents the objection that statistical testing may be better than interactive exploration because in many (most?) situations there is no clear statistical model, there is no obvious (or even appropriate) statistical test, and hypothesis testing is often irrelevant: people need to see what occurs, where it occurs, and to observe the statistical relationships among variables in a spatial context. Not all data analysis is, or should even consist of, formal procedures!

$\endgroup$
  • $\begingroup$ Hello Whuber. Your example of ESDA is a great example, thank you! If you (or others) can suggest other examples of when formal procedures are less relevant - this would be most helpful. $\endgroup$ – Tal Galili Feb 10 '11 at 15:23
7
$\begingroup$

To me interactive visualization is useful only for my own exploration, or when working with a very hands-on client. When dealing with a final presentation, I prefer to choose the static graph that best makes my point. Otherwise clients can get totally distracted by the gee-whiz factor.

The biggest benefit I get from it is a level of speed that frees me to examine far more than I would have if I stopped to program a solution. JMP is one of my favorite tools for this since it integrates so much of what I want into a single interface. I think most people who are good statistical programmers try something like JMP (or GGobi, etc.) for far too short a period to really get good at it. JMP in particular will give you the impression you know it by just looking over the menus. However, working through the manual is really required to uncover all its power.

You mentioned my main concern about this level of speed though: you end up with absolutely no idea of what your p-values mean. In just a few minutes you can examine hundreds of relationships visually. Doing hypothesis testing after all that is totally misleading, but I see people do that all the time.

A feature I love in GGobi is its projection pursuit, in which you specify what type of pattern you seek in a high dimensional space and then you sit back and watch it "pursue" that goal. Great stuff!

$\endgroup$
  • 2
    $\begingroup$ +1. The remark about final presentations brings to mind, as a notable counterexample, Hans Rosling's famous 2006 TED talk (ted.com/talks/… ). Re: the point about examining "far more," I am reminded of how a lawyer in a deposition asked me about how I had examined the data that backed up my testimony and how her face fell when she learned the work had been done interactively and therefore nothing was printed or saved (which she could then subpoena, examine, and try to impugn). ;-) $\endgroup$ – whuber Feb 11 '11 at 15:12
  • $\begingroup$ JMP is one of the nicest stats applications out there. Statisticians should definitely learn how to use it, if only to impress their clients. It's expensive, but cheap if you're a student or staff member at a school/college/uni $\endgroup$ – Neil McGuigan Feb 21 '11 at 19:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.