Create Interactive Trelliscope Displays

Trelliscope is a scalable, flexible, interactive approach to visualizing data (Hafen, 2013 ). This package provides methods that make it easy to create a Trelliscope display specification for TrelliscopeJS. High-level functions are provided for creating displays from within 'tidyverse' or 'ggplot2' workflows. Low-level functions are also provided for creating new interfaces.


R-CMD-check CRAN

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. 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

install.packages("trelliscopejs")

To install the latest development version:

# install.packages("remotes") # if "remotes" is not already installed
devtools::install_github("hafen/trelliscopejs")

Demos

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 for more.

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)

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("trelliscopejs")

0.2.11 by Ryan Hafen, a year ago


https://hafen.github.io/trelliscopejs/, https://github.com/hafen/trelliscopejs


Report a bug at https://github.com/hafen/trelliscopejs/issues


Browse source code at https://github.com/cran/trelliscopejs


Authors: Ryan Hafen [aut, cre] , Barret Schloerke [aut]


Documentation:   PDF Manual  


BSD_3_clause + file LICENSE license


Imports dplyr, purrr, grid, htmltools, DistributionUtils, grDevices, gtable, digest, jsonlite, ggplot2, base64enc, htmlwidgets, graphics, progress, utils, knitr, webshot, autocogs, tidyr, rlang, fidelius

Suggests plotly, testthat, covr, gapminder, rmarkdown, shiny, housingData


Imported by vismi.

Suggested by modeltime, pmartR, timetk.


See at CRAN