Interactive pivot tables and charts with R and Shiny