forked from nbremer's block: Linear Gradient - Traffic accidents per Day & Hour combination
| #devtools::install_github('thomasp85/ggforce') | |
| #devtools::install_github("dgrtwo/gganimate") | |
| #devtools::install_github('thomasp85/ggraph') | |
| #devtools::install_github("hadley/ggplot2") | |
| library(ggraph) | |
| library(ggforce) | |
| library(gganimate) | |
| library(ggplot2) | |
| library(igraph) |
| #devtools::install_github('thomasp85/ggforce') | |
| #devtools::install_github("dgrtwo/gganimate") | |
| #devtools::install_github('thomasp85/ggraph') | |
| #devtools::install_github("hadley/ggplot2") | |
| library(ggraph) | |
| library(ggforce) | |
| library(gganimate) | |
| library(ggplot2) | |
| library(igraph) |
| library(randomNames) | |
| library(networkD3) | |
| library(igraph) | |
| set.seed(3) | |
| nl = 100 | |
| df = data.frame(source = randomNames(1000,which.names='both', name.order = 'first.last', name.sep=' '), target = '') | |
| df = df[rep(seq_len(nrow(df)), sample(1:10,nrow(df), replace=T)),] | |
| df = df[sample(nrow(df),nl),] | |
| df$target = sample(df$source,nrow(df), replace = T) |
Built with blockbuilder.org
| license: mit |
I added a new attribute to the dataset which is region.
In the node-link diagram, states in the same region likely stick together as they have links in between.
States in region which has less number of links spread out in the diagram. For example: look at the light-green color (South Atlantic), Florida is far apart with those states (DC, Maryland, Virginia, West Viginia, Delaware).
Thus, although the dataset is non-spatial, users can explore the relationship of nodes by looking the distance or number of hops in between.
Built with blockbuilder.org
forked from jalapic's block: network fade
forked from jalapic's block: network fade 2
| height: 800 |
Use the mouse to click on a dot and see the word plotted. Click a label to hide it again.
Color indicates polarity based on simple word labeling from the AFINN wordlist. It may be that context in this dataset affects polarity :)
forked from arnicas's block: TSNE Plot of Yelp Reviews