You can embed Shiny inputs and outputs in your document. Outputs are automatically updated whenever inputs change. This demonstrates how a standard R plot can be made interactive by wrapping it in the Shiny renderPlot
function. The selectInput
and sliderInput
functions create the input widgets used to drive the plot. The plotOutput
function indicates where to include the plot.