shufflecards
shufflecards copied to clipboard
:sparkles: Create magical grid layouts in Shiny & Markdown
shufflecards ![](https://github.com/dreamRs/shufflecards/raw/master/man/figures/shufflecards.png)
Filter and sort grid layouts in Shiny application and Markdown document with Shuffle.js.
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
andhighcharter
: 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
- trelliscopejs R Package : Trelliscope is a scalable, flexible, interactive approach to visualizing data.