Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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