[R] Interactive plots?

mister_bluesman mister_bluesman at hotmail.com
Sat May 26 15:25:16 CEST 2007


The jpeg was just the picture showing you firfox and the svg file loaded into
it.



Duncan Murdoch-2 wrote:
> 
> 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.
> 
> 

-- 
View this message in context: http://www.nabble.com/Interactive-plots--tf3818454.html#a10816361
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list