shufflecards icon indicating copy to clipboard operation
shufflecards copied to clipboard

:sparkles: Create magical grid layouts in Shiny & Markdown

shufflecards

Filter and sort grid layouts in Shiny application and Markdown document with Shuffle.js.

Travis-CI Build Status Lifecycle: maturing Project Status: Active – The project has reached a stable, usable state and is being actively developed.

Installation

You can install shufflecards from GitHub:

remotes::install_github("dreamRs/shufflecards")

Usage

Markdown: use shuffle_widget to create a grid of elements, arrange the grid with buttons and filter with crosstalk inputs.

Shiny: use shuffle_container to create a grid of elements in UI, use classic Shiny inputs and server-side logic to arrange & filter the grid.

Examples

Markdown

  • With htmlwidget billboarder : https://dreamrs.github.io/tweets-transports/
  • With HTML tags : https://dreamrs.github.io/shufflecards/playing-cards
  • With flexdashboard and highcharter : https://dreamrs.github.io/shufflecards/flexdashboard
  • With ggplot2 : https://dreamrs.github.io/shufflecards/gapminder-md-ggplot2

Shiny

You can run the playing cards example with:

shufflecards::play()

With data from gapminder package and ggplot2:

Run this example with :

run_example(example = "gapminder")

Related package