[R] Interactive plots?
mister_bluesman
mister_bluesman at hotmail.com
Sat May 26 14:45:29 CEST 2007
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 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.
>
>
--
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.
More information about the R-help
mailing list