Skip to content

dcurrier/shiny-js-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shiny JavaScript examples

This repository contains examples of simple but nontrivial Shiny applications that demonstrate integration with custom JavaScript code.

Output examples

Adaptation of NVD3.js charting library's examples. Extends This Example by adding customizable chart elements and building outputs for additional chart types. Currently supported are Line Chart, Line With Focus Chart, Scatter Chart, Discrete Bar Chart, and Multi-Bar Chart.

Run these examples by calling:

Line Chart: shiny::runGitHub("shiny-js-examples", "dcurrier", subdir="output/linechart", launch.browser=TRUE)

Line With Focus: shiny::runGitHub("shiny-js-examples", "dcurrier", subdir="output/linewithfocuschart", launch.browser=TRUE)

Multi Bar Chart: shiny::runGitHub("shiny-js-examples", "dcurrier", subdir="output/multibarchart", launch.browser=TRUE)

Discrete Bar Chart Output: shiny::runGitHub("shiny-js-examples", "dcurrier", subdir="output/discretebarchart", launch.browser=TRUE)

Scatter Chart: shiny::runGitHub("shiny-js-examples", "dcurrier", subdir="output/scatterchart", launch.browser=TRUE)

Or, if you do not have R or the Shiny package installed, the following links will bring you to examples hosted by shinyapps.io.

Line Chart Output

Line With Focus Output

Multi Bar Chart Output

Discrete Bar Chart

Scatter Chart

Input example

Demonstrates creating a custom Shiny input binding for a simple JavaScript-enabled "dueling select box" input widget.

Run this example by calling:

shiny::runGitHub("shiny-js-examples", "dcurrier", subdir="input")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.6%
  • CSS 2.7%
  • R 1.7%