Git Product home page Git Product logo

Comments (6)

Dschaykib avatar Dschaykib commented on August 15, 2024 1

Thanks :)
I will see what I can do over the weekend.

from blog.

Dschaykib avatar Dschaykib commented on August 15, 2024 1

I have added some documentation and examples. Also while add it, Ifixed some bugs and added testing. Hope this helps you. If not, just contact me again.

from blog.

DataStrategist avatar DataStrategist commented on August 15, 2024

Perfect. This is really useful!

As a thanks, here's some improvements... adding interactivity thru the visnetwork package:

library(tidyverse)
library(visNetwork)

Expl <- net$matrix %>% mutate(FROM = rownames(net$matrix)) %>% gather(TO, Value, -FROM) %>% 
  filter(Value != 0)

nodes <- Expl$FROM %>% c(Expl$TO) %>% table %>% as_data_frame %>% rename(label = 1, value = n) %>% 
  mutate(id = 1:n())

edges <- Expl %>% left_join(nodes, c("FROM" = "label")) %>% rename(from = id) %>% select(-FROM) %>% 
  left_join(nodes, c("TO" = "label")) %>% rename(to = id) %>% select(-TO) %>% 
  mutate(arrows = "from")
  
visNetwork(nodes = nodes, edges = edges)

You can add it if you want... but this should be popularized sir! Blog about it more!

from blog.

DataStrategist avatar DataStrategist commented on August 15, 2024

This is what my package looks like!
image

from blog.

Dschaykib avatar Dschaykib commented on August 15, 2024

I did not delete anything on purpose. Which additional Code do you mean?
If you mean the one from above, I haven't checked that yet.

from blog.

DataStrategist avatar DataStrategist commented on August 15, 2024

from blog.

Related Issues (4)

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.