jcarmichael
2008-Aug-22 21:53 UTC
[R] Using interactive plots to get information about data points
I have been experimenting with interactive packages such iplots and playwith. Consider the following sample dataset: A B C D 1 5 5 9 3 2 8 4 1 7 3 0 7 2 2 6 Let's say I make a plot of variable A. I would like to be able to click on a data point (e.g. 3) and have a pop-up window tell me the corresponding value for variable D (e.g. 4). I am also trying to produce multiple small plots. For example, four side-by-side boxplots for each of the four variables A, B, C, D. Any help would be greatly appreciated! Thanks! -- View this message in context: http://www.nabble.com/Using-interactive-plots-to-get-information-about-data-points-tp19116114p19116114.html Sent from the R help mailing list archive at Nabble.com.
Michael Bibo
2008-Aug-23 08:48 UTC
[R] Using interactive plots to get information about data points
jcarmichael <jcarmichael314 <at> gmail.com> writes:> > > I have been experimenting with interactive packages such iplots and playwith. > Consider the following sample dataset: > > A B C D > 1 5 5 9 > 3 2 8 4 > 1 7 3 0 > 7 2 2 6 > > Let's say I make a plot of variable A. I would like to be able to click on > a data point (e.g. 3) and have a pop-up window tell me the corresponding > value for variable D (e.g. 4).?identify with labels argument. Another approach you might like to consider is to use GGobi (www.ggobi.org) with the rggobi package linking directly to it from R. GGobi is built specifically for this kind of interactive purpose.> I am also trying to produce multiple small > plots. For example, four side-by-side boxplots for each of the four > variables A, B, C, D.?par... eg par(mfrow=c(1,4)) (for base graphics). Hope this helps. Michael Bibo Queensland Health
Antony Unwin
2008-Aug-27 11:20 UTC
[R] Using interactive plots to get information about data points
> I have been experimenting with interactive packages such iplots and > playwith. Consider the following sample dataset: > A B C D > 1 5 5 9 > 3 2 8 4 > 1 7 3 0 > 7 2 2 6 > Let's say I make a plot of variable A. I would like to be able to > click on a data point (e.g. 3) and have a pop-up window tell me the > corresponding value for variable D (e.g. 4).You're right that iplots can't do that (it's on the wishlist), but it offers alternatives. As a multiwindowing package, it is natural to have graphics displays open for all variables of current interest. This means that selecting a point highlights it in all displays and you can see or query the corresponding values. Antony Unwin Professor of Computer-Oriented Statistics and Data Analysis, Mathematics Institute, University of Augsburg, 86135 Augsburg, Germany Tel: + 49 821 5982218 antony.unwin@math.uni-augsburg.de http://stats.math.uni-augsburg.de/ [[alternative HTML version deleted]]