All Projects → davesteps → shinyFilters

davesteps / shinyFilters

Licence: Apache-2.0 license
Cascading filter modules for Shiny

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to shinyFilters

workshops-setup cloud analytics machine
Tips and Tricks to setup a cloud machine for Analytics and Data Science with R, RStudio and Shiny Servers, Python and JupyterLab
Stars: ✭ 12 (-7.69%)
Mutual labels:  shiny, shiny-server, shiny-apps
shiny crud
Example Shiny apps implementing CRUD database functionality
Stars: ✭ 88 (+576.92%)
Mutual labels:  shiny, shiny-apps
shinyCircos
an R/shiny application for creation of Circos plot interactively
Stars: ✭ 127 (+876.92%)
Mutual labels:  shiny, shiny-server
shinydnd
Creating drag and drop elements in Shiny
Stars: ✭ 89 (+584.62%)
Mutual labels:  shiny, shiny-apps
memory-hex
Hex Memory Game in Shiny
Stars: ✭ 29 (+123.08%)
Mutual labels:  shiny, shiny-apps
learning R
List of resources for learning R
Stars: ✭ 32 (+146.15%)
Mutual labels:  shiny, shiny-apps
machLearn
Machine learning dashboard created with R/shiny
Stars: ✭ 74 (+469.23%)
Mutual labels:  shiny, shiny-apps
PlotsOfData
Shiny App for comparison of samples
Stars: ✭ 47 (+261.54%)
Mutual labels:  shiny, shiny-apps
antaresViz
ANTARES Visualizations
Stars: ✭ 19 (+46.15%)
Mutual labels:  shiny, shiny-apps
daattali.github.io
Dean Attali's website - R/Shiny Consultant
Stars: ✭ 51 (+292.31%)
Mutual labels:  shiny, shiny-server
shiny.fluent
Microsoft's Fluent UI for Shiny apps
Stars: ✭ 170 (+1207.69%)
Mutual labels:  shiny, shiny-apps
shiny-server-arm-docker
Shiny-Server in docker for ARM(armv7/arm64) and amd64. Most suitable to run on SBCs such as Raspberry Pi. Enables installing R-libraries on top of the bare image.
Stars: ✭ 26 (+100%)
Mutual labels:  shiny, shiny-server
shiny-apps
Some of my Shiny apps for fun
Stars: ✭ 54 (+315.38%)
Mutual labels:  shiny, shiny-apps
analytics-platform-shiny-server
Analytics Platform Shiny Server
Stars: ✭ 21 (+61.54%)
Mutual labels:  shiny, shiny-server
PlotTwist
PlotTwist - a web app for plotting and annotating time-series data
Stars: ✭ 21 (+61.54%)
Mutual labels:  shiny, shiny-apps
financial-asset-comparison-tool
R Shiny app to compare the relative performance of cryptos and equities.
Stars: ✭ 97 (+646.15%)
Mutual labels:  shiny, shiny-apps
bubblyr
☁️ ☁️ ☁️ Beautiful Bubbles in Shiny and RMarkdown Backgrounds
Stars: ✭ 16 (+23.08%)
Mutual labels:  shiny
prettifyAddins
RStudio addins to prettify JavaScript/HTML/CSS/Markdown/C++ and more.
Stars: ✭ 18 (+38.46%)
Mutual labels:  shiny
Covid19
Dashboard developed in r shiny to provide insight on COVID-19 pandemic, analyzing data from public, reliable sources.
Stars: ✭ 15 (+15.38%)
Mutual labels:  shiny
GREIN
GREIN : GEO RNA-seq Experiments Interactive Navigator
Stars: ✭ 40 (+207.69%)
Mutual labels:  shiny-apps

shinyFilters

The idea of shinyFilters is to allow quick and easy filtering of data.frames in Shiny.

  • The filter choices are cascading - If the user chooses 'USA' and 'Asia' in filter 1. All subsequent filters will be updated to only contain choices which meet this criteria.

  • Enable/disable child filter based on condition of parent - Filter 2 is only enabled when 'USA' or 'Asia' are selected in filter 1.

Installation

Install using the devtools package

# Install devtools, if you haven't already.
install.packages("devtools")

devtools::install_github("davesteps/shinyFilters")

Usage

Example 1 (see here)

library(shiny)
library(shinyjs)
library(dplyr)
library(shinyFilters)


# create filterset in global section of app
filterSet <- newFilterSet('FS1') %>%
  # give each filter unique id and tell it which column to filter on
  addSelectFilter('cylinders','cyl') %>%
  addSelectFilter('gears','gear') %>%
  addSliderFilter('disp',value=c(0,500)) %>%
  addSelectFilter('carb') %>%
  addCustomSliderFilter('hp',value=seq(0,500,50))


ui <- fluidPage(
  #shinyjs is required to show/hide filters
  useShinyjs(),
  sidebarLayout(
    sidebarPanel(
      filterInputs(filterSet),
      hr(),
      filterMaster(filterSet),
      filterResetButton(filterSet)
    ),
    mainPanel(
      DT::dataTableOutput("data")
    )
  )
)

server <- function(input, output,session) {

  # wrap data in reactive expression in case you
  # need to do something to the data before filtering
  data <- reactive(mtcars)

  # initialize the filter set
  filterSet <- initializeFilterSet(filterSet, data)

  # the output is a reactive data.frame
  output$data <- DT::renderDataTable(filterSet$output())

}

shinyApp(ui, server)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].