Hi there. I am still trying to get the RSVGTipsDevice to work, yet I can not. I have copied the first example from RSVGTipsDevice documentation: library(RSVGTipsDevice) devSVGTips("C:\\svgplot1.svg", toolTipMode=1, title="SVG example plot 1: shapes and points, tooltips are title + 1 line") plot(c(0,10),c(0,10), type="n", xlab="x", ylab="y", main="Example SVG plot with title + 1 line tips (mode=1)") setSVGShapeToolTip(title="A rectangle", desc="that is yellow") rect(1,1,4,6, col='yellow') setSVGShapeToolTip(title="1st circle with title only") points(5.5,7.5,cex=20,pch=19,col='red') setSVGShapeToolTip(title="A triangle", desc="big and green") polygon(c(3,6,8), c(3,6,3), col='green') # no tooltips on these points points(2:8, 8:2, cex=3, pch=19, col='black') # tooltips on each these points invisible(sapply(1:7, function(x) {setSVGShapeToolTip(title=paste("point", x)) points(x+1, 8-x, cex=3, pch=1, col='black')})) dev.off() This results in the following output: http://www.nabble.com/file/p11064573/svgplot1.svg svgplot1.svg It opens but when I try and hover over the triangle, for example, I do not get a topptip box appear. I have tried opening the file though firefox, and XP IE - and on more than one computer yet it does not work. Do I need to install something else as well? Many thanks -- View this message in context: http://www.nabble.com/Problem-with-RSVGTipsDevice-tf3902760.html#a11064573 Sent from the R help mailing list archive at Nabble.com.
Hi Mister_Bluesman, Sorry to sadden you further, but your example svg works perfectly on my machine (R 2.5 running on Vista). All the "ToolTips" display. Perhaps it's your browser [setup]: I'm using Opera 9.20 (Build 8771). HTH, Mark Difford. mister_bluesman wrote:> > Hi there. > > I am still trying to get the RSVGTipsDevice to work, yet I can not. > > I have copied the first example from RSVGTipsDevice documentation: > > library(RSVGTipsDevice) > devSVGTips("C:\\svgplot1.svg", toolTipMode=1, > title="SVG example plot 1: shapes and points, tooltips are title + 1 > line") > plot(c(0,10),c(0,10), type="n", xlab="x", ylab="y", > main="Example SVG plot with title + 1 line tips (mode=1)") > setSVGShapeToolTip(title="A rectangle", desc="that is yellow") > rect(1,1,4,6, col='yellow') > setSVGShapeToolTip(title="1st circle with title only") > points(5.5,7.5,cex=20,pch=19,col='red') > setSVGShapeToolTip(title="A triangle", desc="big and green") > polygon(c(3,6,8), c(3,6,3), col='green') > # no tooltips on these points > points(2:8, 8:2, cex=3, pch=19, col='black') > # tooltips on each these points > invisible(sapply(1:7, function(x) > {setSVGShapeToolTip(title=paste("point", x)) > points(x+1, 8-x, cex=3, pch=1, col='black')})) > dev.off() > > This results in the following output: > > http://www.nabble.com/file/p11064573/svgplot1.svg svgplot1.svg > > It opens but when I try and hover over the triangle, for example, I do not > get a topptip box appear. I have tried opening the file though firefox, > and XP IE - and on more than one computer yet it does not work. Do I need > to install something else as well? > > Many thanks >-- View this message in context: http://www.nabble.com/Problem-with-RSVGTipsDevice-tf3902760.html#a11065021 Sent from the R help mailing list archive at Nabble.com.
Ah. Now that's intersting. It works in Opera. But do you get an annoying 'Null' label by the cursor when you place it over the svg file? MANY thanks -- View this message in context: http://www.nabble.com/Problem-with-RSVGTipsDevice-tf3902760.html#a11065042 Sent from the R help mailing list archive at Nabble.com.
Mister_Bluesman, Perhaps I should have been more precise: your included svgplot1.svg displays fine...! mister_bluesman wrote:> > Hi there. > > I am still trying to get the RSVGTipsDevice to work, yet I can not. > > I have copied the first example from RSVGTipsDevice documentation: > > library(RSVGTipsDevice) > devSVGTips("C:\\svgplot1.svg", toolTipMode=1, > title="SVG example plot 1: shapes and points, tooltips are title + 1 > line") > plot(c(0,10),c(0,10), type="n", xlab="x", ylab="y", > main="Example SVG plot with title + 1 line tips (mode=1)") > setSVGShapeToolTip(title="A rectangle", desc="that is yellow") > rect(1,1,4,6, col='yellow') > setSVGShapeToolTip(title="1st circle with title only") > points(5.5,7.5,cex=20,pch=19,col='red') > setSVGShapeToolTip(title="A triangle", desc="big and green") > polygon(c(3,6,8), c(3,6,3), col='green') > # no tooltips on these points > points(2:8, 8:2, cex=3, pch=19, col='black') > # tooltips on each these points > invisible(sapply(1:7, function(x) > {setSVGShapeToolTip(title=paste("point", x)) > points(x+1, 8-x, cex=3, pch=1, col='black')})) > dev.off() > > This results in the following output: > > http://www.nabble.com/file/p11064573/svgplot1.svg svgplot1.svg > > It opens but when I try and hover over the triangle, for example, I do not > get a topptip box appear. I have tried opening the file though firefox, > and XP IE - and on more than one computer yet it does not work. Do I need > to install something else as well? > > Many thanks >-- View this message in context: http://www.nabble.com/Problem-with-RSVGTipsDevice-tf3902760.html#a11065061 Sent from the R help mailing list archive at Nabble.com.
Hi Mister_Bluesman, Sadly it is; and it stays up (in what's probably a bold, sans serif), lurking behind the "ToolTip," when that comes up. This is not my area of X, but any standard txt editor will open an svg file. If you search through your file you will find lots and lots of "null" arguments to various functions. It's likely that the problem lies there. HTH, Mark Difford. mister_bluesman wrote:> > Ah. Now that's intersting. It works in Opera. But do you get an annoying > 'Null' label by the cursor when you place it over the svg file? > > MANY thanks >-- View this message in context: http://www.nabble.com/Problem-with-RSVGTipsDevice-tf3902760.html#a11066065 Sent from the R help mailing list archive at Nabble.com.
The new version of RSVGTipsDevice (0.7.1) that is now available on CRAN should fix this problem. Please let me know if it doesn't, or if there are other problems. -- Tony Plate mister_bluesman wrote:> Hi there. > > I am still trying to get the RSVGTipsDevice to work, yet I can not. > > I have copied the first example from RSVGTipsDevice documentation: > > library(RSVGTipsDevice) > devSVGTips("C:\\svgplot1.svg", toolTipMode=1, > title="SVG example plot 1: shapes and points, tooltips are title + 1 line") > plot(c(0,10),c(0,10), type="n", xlab="x", ylab="y", > main="Example SVG plot with title + 1 line tips (mode=1)") > setSVGShapeToolTip(title="A rectangle", desc="that is yellow") > rect(1,1,4,6, col='yellow') > setSVGShapeToolTip(title="1st circle with title only") > points(5.5,7.5,cex=20,pch=19,col='red') > setSVGShapeToolTip(title="A triangle", desc="big and green") > polygon(c(3,6,8), c(3,6,3), col='green') > # no tooltips on these points > points(2:8, 8:2, cex=3, pch=19, col='black') > # tooltips on each these points > invisible(sapply(1:7, function(x) > {setSVGShapeToolTip(title=paste("point", x)) > points(x+1, 8-x, cex=3, pch=1, col='black')})) > dev.off() > > This results in the following output: > > http://www.nabble.com/file/p11064573/svgplot1.svg svgplot1.svg > > It opens but when I try and hover over the triangle, for example, I do not > get a topptip box appear. I have tried opening the file though firefox, and > XP IE - and on more than one computer yet it does not work. Do I need to > install something else as well? > > Many thanks
Seemingly Similar Threads
- Why is the 64bit Windows version of package RSVGTipsDevice not available on CRAN?
- Graphics API version mismatch with RSVGTipsDevice
- Interactive plots?
- new package: RSVGTipsDevice: create SVG plots with tooltips & hyperlinks
- new package: RSVGTipsDevice: create SVG plots with tooltips & hyperlinks