Re: [R] Interactive plots?

From: mister_bluesman <mister_bluesman_at_hotmail.com>
Date: Sat, 26 May 2007 05:45:29 -0700 (PDT)

Hi Tony.

I've downloaded the RSVGTipsDevice library and copied some of the examples in the pdf and I dont seem to be able to get any tooltips appear when I hover over the objects.

For example, I used the following example:

> devSVGTips("C:\\svgplot2.svg", toolTipMode=2, title="SVG example plot 2:
> shapes and points, tooltips are title + 2 lines")
> getSVGToolTipMode()
> setSVGShapeToolTip(title="First circle title only")
> plot(1:3, cex=10, main="Example SVG plot with title + 2 line tips
> (mode=2)")
> setSVGShapeToolTip(title="A rectangle", desc="with a 1 line tip")
> rect(1,1,2,2)
> setSVGShapeToolTip(title="second circle", desc1="first line of
> description", desc2="second line")
> points(1.5,2.5,cex=20,pch=19,col='red')
> dev.off()

This produces a file with the path C:\svgplot2.svg. THis is shown below:

http://www.nabble.com/file/p10816061/demo.jpg

When I open it in Firefox in XP, however, none of the tooltips appear when I hover over the object. What do I need to solve this problem?

Thanks

Tony Plate wrote:
>
> The package RSVGTipsDevice allows you to do just it just -- you create a
> plot in an SVG file that can be viewed in a browser like FireFox, and
> the points (or shapes) in that plot can have pop-up tooltips.
>
> -- Tony Plate
>
> mister_bluesman wrote:

>> Hi there. 
>> 
>> I have a matrix that provides place names and the distances between them:
>> 
>>            Chelt     Exeter	London	Birm
>> Chelt     0       118     96      50
>> Exeter   118    0       118     163
>> London  96     118     0       118
>> Birm      50     163     118     0
>> 
>> After performing multidimensional scaling I get the following points
>> plotted
>> as follows
>> 
>> http://www.nabble.com/file/p10810700/demo.jpeg 
>> 
>> I would like to know how if I hover a point I can get a little box
>> telling
>> me which place the point refers to. Does anyone know?
>> 
>> Many thanks.

>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>
>
-- 
View this message in context: http://www.nabble.com/Interactive-plots--tf3818454.html#a10816061
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_stat.math.ethz.ch 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.
Received on Sat 26 May 2007 - 12:53:38 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 26 May 2007 - 14:31:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.