Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hafen/trelliscopejs
TrelliscopeJS R Package
https://github.com/hafen/trelliscopejs
r visualization
Last synced: 20 days ago
JSON representation
TrelliscopeJS R Package
- Host: GitHub
- URL: https://github.com/hafen/trelliscopejs
- Owner: hafen
- License: other
- Created: 2016-10-04T18:35:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-01-04T23:31:48.000Z (11 months ago)
- Last Synced: 2024-01-10T23:07:18.933Z (11 months ago)
- Topics: r, visualization
- Language: R
- Homepage: https://hafen.github.io/trelliscopejs
- Size: 8.3 MB
- Stars: 261
- Watchers: 14
- Forks: 38
- Open Issues: 75
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-shiny-extensions - trelliscopejs - Create interactive Trelliscope displays based on trelliscopejs-lib. (Visualization / Tree and Hierarchical Data)
- awesome-r-dataviz - trelliscopejs - TrelliscopeJS R Package. (Interactive plots / Miscellaneous)
- jimsghstars - hafen/trelliscopejs - TrelliscopeJS R Package (R)
README
[![Build Status](https://travis-ci.org/hafen/trelliscopejs.svg?branch=master)](https://travis-ci.org/hafen/trelliscopejs)
[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/hafen/trelliscopejs?branch=master&svg=true)](https://ci.appveyor.com/project/hafen/trelliscopejs)
[![codecov.io](https://codecov.io/github/hafen/trelliscopejs/coverage.svg?branch=master)](https://codecov.io/github/hafen/trelliscopejs?branch=master)
[![CRAN](http://www.r-pkg.org/badges/version/trelliscopejs)](https://cran.r-project.org/package=trelliscopejs)# trelliscopejs
Trelliscope is a scalable, flexible, interactive approach to visualizing data. The trelliscopejs R package provides methods that make it easy to create a Trelliscope display specification for the Trelliscope JavaScript library [trelliscopejs-lib](https://github.com/hafen/trelliscopejs-lib). High-level functions are provided for creating displays from within dplyr (via `summarise()`) or ggplot2 (via `facet_trelliscope()`) workflows. Low-level functions are also provided for creating new interfaces.
### Install
```r
install.packages("trelliscopejs")
```To install the latest development version:
```r
# install.packages("remotes") # if "remotes" is not already installed
devtools::install_github("hafen/trelliscopejs")
```## Demos
- [Gapminder](https://hafen.github.io/trelliscopejs-demo/gapminder/)
- [Gapminder with Plotly panels](https://hafen.github.io/trelliscopejs-demo/gapminder_plotly/)
- [Monthly U.S. home prices by county](https://hafen.github.io/trelliscopejs-demo/housing/)
- [Pokemon](https://hafen.github.io/trelliscopejs-demo/pokemon/)## Examples
Here is a simple example using the ggplot2 interface. Using trelliscopejs in this way is as easy as swapping `facet_wrap()` with `facet_trelliscope()` and specifying some additional options.
Please see the [package vignettes](https://hafen.github.io/trelliscopejs/) for more.
```r
library(trelliscopejs)
library(ggplot2)
library(gapminder)qplot(year, lifeExp, data = gapminder) +
xlim(1948, 2011) + ylim(10, 95) + theme_bw() +
facet_trelliscope(~ country + continent, nrow = 2, ncol = 7, width = 300)
```