Comments (9)
Yes, it's a very good feature request, but with quite a lot of work ! I'll try to find time to tkink about how add this in a next version.
from visnetwork.
thanks! I realized it would be a major request, therefore I built a smaller output binding, without all the nice things you have, which can just do this. Even though it is a lot of work, it would give your package a really nice feature boost I think.
from visnetwork.
In progress, first version coming soon...
from visnetwork.
nice! :-)
from visnetwork.
by the way, a cool feature I implemented which is easy to do once you have the proxy object is to use the animation option, see here.
Especially the animated fit and the ability to focus on a given node are useful e.g. to create a guided tour through a network over time.
Also pretty useful is the ability to use different layout endering-engines (other than the force layout and hierarchical layout vis.js offers). For instance, DiagrammeR offers a few, see here.
You just have to scale the coordinates of other layout engines to the coordinates visNetwork uses, which is easy to achieve as in vis.js you can give individual nodes x and y coordinates. A simple scaling to the canvas vis.js uses is enough. igraph obviously is another candidate which offers layout rendering possibilities.
The drawback is that you have to maintain multiple node and edge lists, but practically you would just pass the vis.js nodes and edges, use a transformation function to get inputs for the other network rendering tools, get the new coordinates and apply them to the vis.js instance.
from visnetwork.
Now available in dev version on github, visNetwork 0.2.0.
You can use in shiny with visNetworkProxy
function and then call visNodes
, visEdges
, ... all options for update.
I also introduce visFocus
& visFit
functions (and add more in future I think....!)
Some examples in a shiny apps shiny::runApp(system.file("shiny", package = "visNetwork"))
from visnetwork.
looks nice! thanks for the update, I hope many find it useful :-)
from visnetwork.
Just for information about layout :
I've just initialize and push on gitub a new function visIgraphLayout
to compute coordinates before rendering. So we can now render the network really quicky, and use all igraph layout such as layout_in_circle
, ...
from visnetwork.
I noticed! Nice work, thanks! :-)
from visnetwork.
Related Issues (20)
- visLegend: different color for NA values?
- edges: weight & color in docs
- visOptions height adds a footer HOT 1
- groupname not shown in legend if many groups
- visIgraphLayout: undefined columns selected HOT 1
- Adding Two Search Bars to Networks
- Specifying Order of Points in visNetwork
- Can't change figure size in R markdown HOT 1
- Network background image
- arrows.to.type Documentation HOT 1
- Node labels cause extreme node sizes, and can't use ellipsis on node labels HOT 1
- Default colors listed in visNodes() documentation still incorrect
- Edge Labels in VisNetwork?
- Display information of the nodes when an edge is selected HOT 1
- Highlight Edges with Color Column HOT 1
- Access network instance from script
- HOWTO receive event when node is selected HOT 1
- Is it possible to rotate FontAwesome icons with visNetwork?
- Does anyone know how to save a drag and drop graph in Rshiny after drawing a flowchart with visNetwork
- `visHclust()` throws `Error in match.names(clabs, names(xi)) : names do not match previous names` when using reference manual code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from visnetwork.