Display a 'shiny' application

Share:

Description

Displays one of the built-in interactive 'shiny' applications in the browser. See Details for the apps available.

Usage

1
showShinyApp(topic)

Arguments

topic

The name of the shiny app to display. If missing, a list of available apps will be returned. Partial matching can be used.

Details

Three apps are currently included in the wiqid package:

"Beta" displays a beta distribution and sliders which allow you to change the parameters. You can also input binomial data and obtain the conjugate beta posterior distribution.

"Gamma" displays a gamma distribution with variable parameters, and can produce the conjugate gamma posterior for Poisson-distributed count data.

"Quadratic" plots a quadratic relationship with variable parameters, showing how the quadratic term can add a hump or hollow to a relationship.

Value

If topic is missing, a list of available apps. Otherwise, nothing useful; the function is run for its side effect.

Author(s)

A much simplified version of code by Jason Bryer on Github at https://github.com/jbryer/IS606, adapted by Mike Meredith.

Examples

1
2
3
4
showShinyApp() # Shows a list of available apps

# The following command will cause R to freeze until you press Esc:
# showShinyApp("Be")

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.