Dear all, I would like to make a large scatter plot created with R available as an interactive web graphic, in combination with additional text-annotations for each data point in the plot. The idea is to present the text-annotations in an HTML-table and inter-link the data points in the plot with their corresponding entries in the table, i.e. when clicking on a data point in the plot, the corresponding entry in the table should be highlighted or centered and vice-versa, when clicking on a table-entry, the corresponding point in the plot should be highlighted. I have seen that CRAN contains various R-packages for SVG-based output of interactive graphics (with hyperlinks and tool-tip annotations for each data point); however, SVG is not supported by all browsers. Is anybody aware of another solution for this problem (maybe based on image-maps and javascript)? If you have alternative ideas for interlinking tabular annotations with plotted data points, I would appreciate any recommendation/suggestion. (I work with R 2.8.1 on different 32-bit PCs with both Linux and Windows operating systems). Many thanks, Rainer _____________________________________________ inen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com
On Sun, Feb 7, 2010 at 2:35 PM, Rainer Tischler <rainer_t62 at yahoo.de> wrote:> Dear all, > > I would like to make a large scatter plot created with R available as an interactive web graphic, in combination with additional text-annotations for each data point in the plot. The idea is to present the text-annotations in an HTML-table and inter-link the data points in the plot with their corresponding entries in the table, i.e. when clicking on a data point in the plot, the corresponding entry in the table should be highlighted or centered and vice-versa, when clicking on a table-entry, the corresponding point in the plot should be highlighted. > > I have seen that CRAN contains various R-packages for SVG-based output of interactive graphics (with hyperlinks and tool-tip annotations for each data point); however, SVG is not supported by all browsers. Is anybody aware of another solution for this problem (maybe based on image-maps and javascript)? > If you have alternative ideas for interlinking tabular annotations with plotted data points, I would appreciate any recommendation/suggestion. > (I work with R 2.8.1 on different 32-bit PCs with both Linux and Windows operating systems). >My 'imagemaps' package? https://r-forge.r-project.org/projects/imagemap/ Barry
On Sun, Feb 7, 2010 at 2:35 PM, Rainer Tischler <rainer_t62 at yahoo.de> wrote:> If you have alternative ideas for interlinking tabular annotations with plotted data points, I would appreciate any recommendation/suggestion. > (I work with R 2.8.1 on different 32-bit PCs with both Linux and Windows operating systems).As an alternative suggestion to my imagemap package, you could use a javascript chart plotting library and just generate a data file and the html from R. Maybe flot: http://code.google.com/p/flot/ I find the R 'brew' package ideal for creating JS or HTML output files from object. Warning: this answer contains small parts. Some assembly required. Barry -- blog: http://geospaced.blogspot.com/ web: http://www.maths.lancs.ac.uk/~rowlings web: http://www.rowlingson.com/ twitter: http://twitter.com/geospacedman pics: http://www.flickr.com/photos/spacedman