Blog Archives

Network Centrality in R: New ways of measuring Centrality

December 11, 2018
By
Network Centrality in R: New ways of measuring Centrality

This is the third post of a series on the concept of “network centrality” with applications in R and the package netrankr. The last part introduced the concept of neighborhood-inclusion and its implications for centrality. In this post, we extend the concept to a broader class of dominance relations by deconstructing indices into a series of building blocks and introduce new ways of...

Read more »

Network Centrality in R: Neighborhood Inclusion

December 9, 2018
By
Network Centrality in R: Neighborhood Inclusion

This is the second post of a series on the concept of “network centrality” with applications in R and the package netrankr. The first part briefly introduced the concept itself, relevant R package, and some reoccurring issues for applications. This post will discuss some theoretical foundations and common properties of indices, specifically the neighborhood-inclusion preorder and what we can learn from them. library(igraph) library(ggraph) library(tidyverse) library(netrankr) Introduction When looking...

Read more »

Network Centrality in R: An Introduction

December 6, 2018
By
Network Centrality in R: An Introduction

This is the first post of a series on the concept of “network centrality” with applications in R and the package netrankr. There is already a rudimentary tutorial for the package, but I wanted to extend it to a broader tutorial for network centrality. The main focus of the blog series will be the applications in R and conceptual considerations will only...

Read more »

Beautiful Chaos: The Double Pendulum

November 21, 2018
By
Beautiful Chaos: The Double Pendulum

This post is dedicated to the beautiful chaos created by double pendulums. I have seen a great variety of animated versions, implemented with different tool but never in R. Thanks to the amazing package gganimate, it is actually not that hard to produce them in R. library(tidyverse) library(gganimate) I am not going to attempt to explain the math behind the double pendulum. If you...

Read more »

Rdew Valley: Optimizing Farming with R

November 13, 2018
By
Rdew Valley: Optimizing Farming with R

I recently picked up a copy of my favorite game Stardew Valley again. If you don’t know the game, I can highly recommend it! You inherit a pixel farm and you are in charge of everything. Crops, animals, fishing, mining and never forget to socialize. My plan was to shut off work for at least a few hours while playing. But at...

Read more »

Analyzing the Greatest Strikers in Football II: Visualizing Data

October 6, 2018
By
Analyzing the Greatest Strikers in Football II: Visualizing Data

This is the second part of Analyzing the Greatest Strikers in Football. In the first part, we created the function get_goals() which allows us to conveniently scrape detailed information of players career goals from transfermarkt.co.uk. In this part, we are going to explore the data. library(tidyverse) # for data wrangling library(lubridate) # for date formats library(ggimage) # adding images to ggplot library(patchwork) # attaching...

Read more »

Analyzing the Greatest Strikers in Football I: Getting Data

October 4, 2018
By
Analyzing the Greatest Strikers in Football I: Getting Data

I do not always come up with new ideas for my blog, but rather get inspired by the great work of others. In this case, it was a reddit post by u/Cheapo_Sam, who charted world footballs greatest goal scorers in a marvelous way. According to the post, the data was gathered manually which I thought is too tedious (Ain’t nobody got...

Read more »

Six Degrees of Zlatan Ibrahimovic

September 27, 2018
By
Six Degrees of Zlatan Ibrahimovic

This post is based on the Six Degrees of Kevin Bacon which itself is an adoption of the Erdős number in math. Readers familiar with the concepts can skip the following paragraph and go directly to the calculation of the Zlatan number. I have done this before on my old blog, but I felt like redoing the analysis. What is an Erdős...

Read more »

Stress based graph layouts

September 12, 2018
By
Stress based graph layouts

I academically grew up among graph drawers, that is, computer scientists and mathematicians interested in deriving two-dimensional depictions of graphs. One may despicably call it pixel science, yet a lot of hard theoretical work is put into producing pretty graph layouts. Although I am not at all an expert in this field, I have learned a thing or two about that subject. As...

Read more »

Fast Fiedler Vector Computation

June 23, 2018
By

This is a short post on how to quickly calculate the Fiedler vector for large graphs with the igraph package. #used libraries library(igraph) # for network data structures and tools library(microbenchmark) # for benchmark results Fiedler Vector with eigen My goto approach at the start was using the eigen() function to compute the whole spectrum of the Laplacian Matrix. g

Read more »

Search R-bloggers


Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)