Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dreamRs/timelineschart
Htmlwidget for timelines-chart
https://github.com/dreamRs/timelineschart
Last synced: 3 months ago
JSON representation
Htmlwidget for timelines-chart
- Host: GitHub
- URL: https://github.com/dreamRs/timelineschart
- Owner: dreamRs
- License: other
- Created: 2019-01-29T17:52:59.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-03T08:45:21.000Z (about 2 years ago)
- Last Synced: 2024-01-28T23:09:08.706Z (9 months ago)
- Language: R
- Size: 506 KB
- Stars: 26
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-shiny-extensions - timelineschart - R interface to timelines-chart. (Visualization / Time Series)
README
# timelineschart
> R interface to [timelines-chart](https://github.com/vasturiano/timelines-chart)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![R-CMD-check](https://github.com/dreamRs/timelineschart/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/dreamRs/timelineschart/actions/workflows/R-CMD-check.yaml)## Installation
You can install from [GitHub](https://github.com/dreamRs/timelineschart) with:
``` r
remotes::install_github("dreamRs/timelineschart")
```## Example
Visualise a planning as a timeline chart:
``` r
## Some data
dates <- sample(seq(as.Date("2019-01-01"), as.Date("2019-11-30"), by = "day"), 55)
planning <- data.frame(
group = paste("Group", rep(1:10, sample(1:10, 10))),
label = paste("Label", letters[1:5][sample.int(5, 55, TRUE)]),
start = dates,
end = dates + sample(1:30, 55, TRUE),
value = sample(c("Shutdown", "Maintenance"), 55, TRUE),
stringsAsFactors = FALSE
)## Timeline chart
timelines(data = planning, line_height = 24) %>%
set_scale(palette = c("#FF0000", "#FAAC58"), discrete = TRUE) %>%
set_time(use_utc = TRUE)
```![](man/figures/timelines.png)