Skip to main content
100%

using example from https://cran.r-project.org/web/packages/jsonlite/vignettes/json-apis.html

✓ Published0🌍 Public
Aandressarg
Last edited Aug 30, 2018
Created on Aug 30, 2018

This visualization uses the EventDrops JavaScript library via the R package eventdropR to display commit activity for the tidyverse/purrr repository as a timeline of events. The data is fetched from the GitHub API using jsonlite, extracting commit author names and dates from the JSON response. Rows are grouped by author, and events are rendered as individual drops along a time axis, with author names shown on the left. The visualization is built with d3.js v4 and EventDrops, assembled in R with htmlwidgets and blockbuilder.org.

AI-generated description
<hr/>

Even though I resolved to not do any unpaid open-source this year, I unintentionally did not get paid on some work I did on an htmlwidget wrapper for the interactive EventDrops based on d3. So, here is an example of eventdropR.

Since I am still waiting for compensation, I assume I will never actually collect. I might as well contribute to the world. It is unfinished and still needs lots of improvement, but it does work.

Code

#devtools::install_github("timelyportfolio/eventdropR")

library(jsonlite)
library(eventdropR)
library(dplyr)
library(tibble)

# using example from https://cran.r-project.org/web/packages/jsonlite/vignettes/json-apis.html
fromJSON("https://api.github.com/repos/tidyverse/purrr/commits?per_page=100&since=2017-01-01") %>>%
  {
    tibble(
      name = .$commit$author$name,
      date = .$commit$author$date
    ) 
  } %>>%
  eventdrop(
    labelsWidth = 200
  )

forked from <a href='http://bl.ocks.org/timelyportfolio/'>timelyportfolio</a>'s block: <a href='http://bl.ocks.org/timelyportfolio/3ec8f53305f3575e48332642cae6c063'>EventDrops in R</a>

mit Licensed

Similar vizzes