The reactive dataframe pattern

flexdashboard ile Panolar Oluşturma

Elaine McVey

Director of Data Science

Creating a sidebar

Column {data-width=200 .sidebar}
flexdashboard ile Panolar Oluşturma

Creating a sidebar

alt text

flexdashboard ile Panolar Oluşturma

Adding user inputs

alt text

flexdashboard ile Panolar Oluşturma

Making our dataframe reactive

alt text

flexdashboard ile Panolar Oluşturma

Using the reactive dataframe

alt text

flexdashboard ile Panolar Oluşturma

Making dashboard components reactive

alt text

flexdashboard ile Panolar Oluşturma

Steps to the reactive dataframe pattern

  1. Create a sidebar column (using .sidebar).
  2. Add user inputs to the sidebar (using xyzInput() Shiny widgets).
  3. Make a "dataframe" that reacts to user inputs (using reactive()).
  4. Replace the dataframe in the dashboard component code with the reactive version.
  5. Wrap each dashboard output with the appropriate Shiny version (renderXyz()).
flexdashboard ile Panolar Oluşturma

Let's practice!

flexdashboard ile Panolar Oluşturma

Preparing Video For Download...