Skip to content

Tutorial: 3. Shiny Application

collinleiber edited this page Apr 6, 2018 · 13 revisions

All the functionalities of the package are also provided from an interactive shiny application. Therefore simply load the benchmarkVis package and run the R command:

runShinyApp()

Alternatively - as a developer - open the ui.R or server.ui file from the shiny directory from within RStudio and click the "Run App" button in the upper right. If you do not use RStudio you can load the benchmarkVis package and run the R command shiny::runApp('shiny') in the console.

The shiny application is structured with tabs each having its own functionality. After the app has been started, Import tab is the first one you see. Here you can import your data. First select your import data type and then choose the corresponding csv, json or Rds file. When the upload is finished you can select the Data table tab in the menu on the left. There you can apply aggregation and transformation functions on table columns to transform the table to suit your needs regarding what exactly you want to analyse and plot. The transformed table can be saved as csv or PDF file to better share your results (you can also print out the table directly from the app).

Next you need to switch to the Plots tab, where you can create different charts, for both original data and your transformed table. After a plot type has been chosen and all parameters have been defined the plot will be created in the bottom of the screen. Through the usage of the plotly package there is a wide range of interaction possibilities. If you want to save a plot for a later comparison in the app you can do so by clicking Save this plot in 'Saved Plots'. Saved Plots and Compare Plots tabs allow for inspection of the pre-selected plots.


Next - 3.1. Load Benchmark

Back - 2.2. Create Plots

Clone this wiki locally