neurodata / Graph-Explorer

Web-based graph analytics and some visualization
Apache License 2.0
4 stars 1 forks source link

RDPG & Laplacian in 3D? #3

Open mlee156 opened 9 years ago

mlee156 commented 9 years ago

"not sure how easy it is to embed 3D plots in shiny, and/or dynamically rotate them, but if it is easy enough, i'd be interested in that functionality." ~ Jovo

"3D rotation is "easy" in shiny -- the library shinyRGL (plus the rgl package) allows one to embed an RGL figure in the shiny app. Basicall, all I'd need to to is set it up so that all layouts give 3d layout vectors (or append a dummy third d on if they don't or whatever) and condition on whether the 3d box is checked. I can do this quickly-ish, so I'll put it high on the list." ~dmarchette

"Caveat -- sometimes, no matter what I do, things that plot in 3d just fine suddenly stop not showing up in shiny apps. I think there is some subtle Javascrip stuff going on. So, when I say "easy" I mean either fairly trivial -- it will work essentially immediately -- or it will drive me craze by not putting up any plots.

We'll see." ~dmarchette

"Ok. I have a partial solution. Try it and see if it works. Basically, you need shinyRGL and rgl, and if it works you will see (sometimes it takes a while, even for a small graph, not sure what's going on) a point cloud you can spin with the mouse.

At the moment, edges are not plotted. I will add this, if the thing works well enough and consistently enough, but I have had some issues with shinyRGL in the past, and it seemed kind of flaky today as well.

Anyway, let me know if it works, and if it doesn't. I probably won't get to any changes until later next week or on the week end, so you have lots of time to find lots of bugs." ~dmarchette

"well, it works in safari for me, not in chrome, on my mac. i think a little coordinate axis in the corner would help me "get my bearings" a lot. something like: [image: Inline image 1]

in the meantime, this is already super awesome." ~dmarchette