Re: [R] Interactive plots?

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Sat, 26 May 2007 09:18:31 -0400

On 26/05/2007 8:45 AM, mister_bluesman wrote:
> 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

Your link says jpg, not svg.

> 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?

Don't convert to jpeg?

Duncan Murdoch



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 - 13:28:42 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.