Skip to content

Instantly share code, notes, and snippets.

@timelyportfolio
Created September 16, 2020 20:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timelyportfolio/62f65168872576848be8a56849722db3 to your computer and use it in GitHub Desktop.
Save timelyportfolio/62f65168872576848be8a56849722db3 to your computer and use it in GitHub Desktop.
d3 calendar in R from observable/robservable
# remotes::install_github("juba/robservable")
library(robservable)
# see entire notebook
robservable("@timelyportfolio/a-github-inspired-calendar")
# only see the chart
robservable(
"@timelyportfolio/a-github-inspired-calendar",
include = "chart"
)
# supply R data to chart
dates <- seq.Date(from = as.Date("2013-01-01"), to = as.Date("2013-12-31"), by = "days")
df <- data.frame(
date = dates,
value = round(runif(length(dates), 0, 1000))
)
robservable(
"@timelyportfolio/a-github-inspired-calendar",
include = "chart",
input = list(data = df)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment