https://github.com/badbye/d3calendar
Calendar heatmap based on D3 using R language
https://github.com/badbye/d3calendar
calendar d3js heatmap r
Last synced: about 2 months ago
JSON representation
Calendar heatmap based on D3 using R language
- Host: GitHub
- URL: https://github.com/badbye/d3calendar
- Owner: badbye
- Created: 2018-09-20T07:32:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-21T02:25:09.000Z (over 6 years ago)
- Last Synced: 2025-02-14T15:17:16.323Z (3 months ago)
- Topics: calendar, d3js, heatmap, r
- Language: R
- Size: 400 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# d3calendar
## Installation
```
devtools::install_github('badbye/d3calendar')
```## Usage
```R
library(d3calendar)
df = data.frame(date=as.Date('2018-01-01') + 0:364, value=rnorm(365))
df$label = sprintf('%s: %.2f%%', df$date, df$value * 100)
d3calendar(df)
```
## TODO:
- Add legend- Self-defined colors
- One more plot: https://bl.ocks.org/mbostock/4063318