showShinyApp | R Documentation |
Displays one of the built-in interactive 'shiny' applications in the browser. See Details for the apps available.
showShinyApp(topic)
topic |
The name of the shiny app to display. If missing, a list of available apps will be returned. Partial matching can be used. |
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.
If topic
is missing, a list of available apps. Otherwise, nothing useful; the function is run for its side effect.
A much simplified version of code by Jason Bryer on GitHub at https://github.com/jbryer/DATA606, adapted by Mike Meredith.
showShinyApp() # Shows a list of available apps
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.