3.4 More practice
Exercise 6: A summary of what we have learned
Create a shiny app named ‘02-cars’ with the following requirements: 1. Layout: sidebar layout. 2. A slider in the sidebar panel with
inputId “nrows” and
label “Number of rows:”, which controls how many rows of the data set
datasets::cars to use in the following analysis. The minimum value is 1, maximum value is 50 and default value is 10. 3. In the main panel, create a scatterplot with
dist on the top and a table showing the data on the bottom, using
outputId “carsPlot” and “carsTable” respectively.
Solution will be given in next section.