Input and Output Practical
Now that we have explored our inputs and outputs in RShiny, we are going to put it all together to create the app using the mtcars dataset`.
input widgets, Shiny inputs, selectInput, UI, plotOutput, renderPlot, DTOutput, renderDT, data tables, interactive plots, brushedPoints, plot interactivity, brush
Input and Output Practical
In this practical we are going to create the app below:
This app let’s us select the columns that we would like to plot and then allows us to use a brush on our plot select an area of points that we are interested in evaluating.
Let’s focus on creating this app in several parts:
Create two
selectInput()menus to choose the x- and y-axis to plot along with the resulting output plot.Add to our app the ability to brush over the plot and select points to place in a table beneath the plot.