Tutorial by Examples

Shiny can run as a standalone application on your local computer, on a server that can provide shiny apps to multiple users (using shiny server), or on shinyapps.io. Installing Shiny on a local computer: in R/RStudio, run install.packages("shiny") if installing from CRAN, or devtools::i...
I have some data analysis done on some data and have many 'non-coding' people on the team, who have similar data like mine, and have similar analysis requirements. In such cases, I can build a web application with shiny, which takes in user specific input data files, and generate analyses. I ...
Each shiny app contains two parts: A user interface definition (UI) and a server script (server). This example shows how you can print "Hello world" from UI or from server. UI.R In the UI you can place some view objects (div, inputs, buttons, etc). library(shiny) # Define UI for appl...
The simplest way to include plots in your shinyApp is to use plotOutput in the ui and renderPlot in the server. This will work with base graphics as well as ggPlots library(shiny) library(ggplot2) ui <- fluidPage( plotOutput('myPlot'), plotOutput('myGgPlot') ) server <- function...
Tables are most easily included with the DT package, which is an R interface to the JavaScript library DataTables. library(shiny) library(DT) ui <- fluidPage( dataTableOutput('myTable') ) server <- function(input, output, session){ output$myTable <- renderDataTable({ dat...

Page 1 of 1