tag:blogger.com,1999:blog-7630810606654250077.post7953606972329477987..comments2023-05-12T04:18:09.354-07:00Comments on Timely Portfolio: ggplot2 meet d3klrhttp://www.blogger.com/profile/08783806801212705259noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-7630810606654250077.post-12691225318102402602013-12-11T10:11:32.642-08:002013-12-11T10:11:32.642-08:00Really interesting tool!! Could this example be in...Really interesting tool!! Could this example be incorporated in Shiny?klrhttps://www.blogger.com/profile/08783806801212705259noreply@blogger.comtag:blogger.com,1999:blog-7630810606654250077.post-12569874692327911012013-08-14T08:25:04.096-07:002013-08-14T08:25:04.096-07:00This happened to me too though I use a newer versi...This happened to me too though I use a newer version of R. I replaced grid.export with the old gridToSVG command and the error went away.<br /><br />The next problem I ran in to was this:<br /><br />Error in saveXML(mysvg$svg) : <br /><br /> error in evaluating the argument 'doc' in selecting a method for function 'saveXML': Error in mysvg$svg : $ operator is invalid for atomic klrhttps://www.blogger.com/profile/08783806801212705259noreply@blogger.comtag:blogger.com,1999:blog-7630810606654250077.post-52775958294983097232013-08-14T01:23:55.292-07:002013-08-14T01:23:55.292-07:00From R-Forge (with OS X), I get the error
"W...From R-Forge (with OS X), I get the error <br />"Warning message:<br />package ‘gridSVG’ is not available (for R version 2.15.2) " :-(<br /><br />PS: The solution I'd like is not so much this (re-scale an R image) nor D3 (reinvent R in html), but a package that embeds R graphs in an html window and allows the user to right click over regions and have this pop up menus and dialogs klrhttps://www.blogger.com/profile/08783806801212705259noreply@blogger.comtag:blogger.com,1999:blog-7630810606654250077.post-11589058706476786932013-08-13T20:05:26.670-07:002013-08-13T20:05:26.670-07:00make sure you install from r-forge; grid.export r...make sure you install from r-forge; grid.export replaced gridSVG a couple of iterations ago.klrhttps://www.blogger.com/profile/08783806801212705259noreply@blogger.comtag:blogger.com,1999:blog-7630810606654250077.post-65180504413017671562013-08-13T19:59:29.873-07:002013-08-13T19:59:29.873-07:00I get the same message and have version 1.0-1, whi...I get the same message and have version 1.0-1, which I believe is current.klrhttps://www.blogger.com/profile/08783806801212705259noreply@blogger.comtag:blogger.com,1999:blog-7630810606654250077.post-72502268406180016512013-08-13T14:05:03.091-07:002013-08-13T14:05:03.091-07:00this is from gridSVG
#get the latest version of g...this is from gridSVG<br /><br />#get the latest version of gridSVG<br />install.packages("gridSVG", repos="http://R-Forge.R-project.org")klrhttps://www.blogger.com/profile/08783806801212705259noreply@blogger.comtag:blogger.com,1999:blog-7630810606654250077.post-46334208865835311552013-08-13T09:01:05.697-07:002013-08-13T09:01:05.697-07:00what package (version) defines grid.export()? I ge...what package (version) defines grid.export()? I get function not foundklrhttps://www.blogger.com/profile/08783806801212705259noreply@blogger.comtag:blogger.com,1999:blog-7630810606654250077.post-12049961907774260932013-08-08T10:04:50.919-07:002013-08-08T10:04:50.919-07:00You may want to include to have RJSONIO installed ...You may want to include to have RJSONIO installed before trying to install gridSVG. Installing gridSVG failed for me when it tried to load RJSONIO and it wasn't not found. After installing RJSONIO and gridSVG it worked flawlessly.<br /><br />Nice example of d3 and ggplot for sure.klrhttps://www.blogger.com/profile/08783806801212705259noreply@blogger.comtag:blogger.com,1999:blog-7630810606654250077.post-68524703830402777742013-08-07T18:47:21.384-07:002013-08-07T18:47:21.384-07:00Glad you enjoyed. I know it is possible especial...Glad you enjoyed. I know it is possible especially since I believe there are examples that we can use. I think you are talking more like the semantic zoom in Mike Bostock's zoom examples http://bl.ocks.org/mbostock/3680957. Or as an R/svg example something like Nacho Caballero's rclickme http://rclickme.com/. Is this the behavior you would like? I think this is probably the most klrhttps://www.blogger.com/profile/08783806801212705259noreply@blogger.comtag:blogger.com,1999:blog-7630810606654250077.post-25152217736593658912013-08-07T17:48:16.022-07:002013-08-07T17:48:16.022-07:00OK, pretty cool - but what if we wanted to zoom in...OK, pretty cool - but what if we wanted to zoom in on a chart and have the axis remain in place but the scales change with zoom level? I have been trying to do this for awhile, but between my R and Javascript/D3 skills - I dont seem to get it to happen. Ready to take that challenge?klrhttps://www.blogger.com/profile/08783806801212705259noreply@blogger.com