Coder Social home page Coder Social logo

snahelper's Introduction

snahelper

snahelper is an Rstudio Addin to analyse and visualize networks.

Installation

You can install the developer version with:

#install.packages(devtools)
devtools::install_github("schochastics/snahelper")

In order to work properly, the Package also needs the smglr Package, which adds a new layout algorithm.

devtools::install_github("schochastics/smglr")

Usage

In order to use the Addin, simply highlight a network in your script and select snahelper from the Addin dropdown menu.

Interface

Layout

The layout tab allows you to choose from all implemented algorithms in igraph and the stress based layout from smglr, which is the default and recommended choice. See my blog for an explanation. In the tweak section you can move individual nodes around. The implementation is still very crude, so don’t expect miracles from that. The layout is saved as node attributes x and y.

Node Attribute Manager

The Node Attribute Manager shows all existing node attributes in a sortable table. In addition, you can calculate some new ones (centrality and clustering). More will be added in the future.

Nodes

This is where you can style your nodes. You can either do it manually, by choosing a color/size for all nodes together, or based on an attribute.

Edge Attribute Manager

Same as Node Attribute Manager but for edges. So far only shows existing edge attributes.

Edges

You can style your edges here. snahelper automatically detects if your network is directed and adds arrows if the network is directed. The other options are similar to the nodes tab. The curvature option allows you to bend edges. I highly suggest, that you only bend your edges if there are two edges running between the same set of nodes to make them visible. If you do not have reciprocal edges, then just leave it at 0.

Result

The result tab shows the network in its full size. If you are satisfied with the results, hit the Done button and the R code to produce the plot is automatically inserted in your script.

snahelper's People

Contributors

schochastics avatar

Watchers

Rondon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.