Hi There,
library(shiny)library(plotly)
shinyUI(fluidPage( titlePanel("Help Library Analysis"), sidebarPanel( selectInput("plot_type", "Plot Type:", c("Page views by ION area" = "ua_views_by_area", "Legacy Content Age vs. UA Page Views" = "ua_age_access", "Site Voumes by Time" = "ua_vols_time_series" )), dateRangeInput("dates", "Date range", start = "2015-12-01", end = as.character(Sys.Date())) ), mainPanel( plotlyOutput("trendPlot") )))library(shiny)library(plotly)source("helpers.R")
shinyServer(function(input, output) { output$trendPlot <- renderPlotly({ switch(input$plot_type, ua_views_by_area = ua_views_by_area(input$dates[1],input$dates[2]), ua_age_access = ua_age_access(input$dates[1],input$dates[2]), ua_vols_time_series = ua_vols_time_series(input$dates[1],input$dates[2]) ) })})--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/3a73bef7-66a7-46e3-897d-a3bb00d2993e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
library(shiny)library(plotly)
shinyUI(fluidPage( titlePanel("Help Library Analysis"), sidebarPanel( selectInput("plot_type", "Plot Type:", c("Site Voumes by Time" = "ua_vols_time_series", "Page views by ION area" = "ua_views_by_area", "Legacy Content Age vs. UA Page Views" = "ua_age_access", "Word Cloud" = "ua_search_word_cloud" )), dateRangeInput("dates", "Date range", start = "2015-12-01", end = as.character(Sys.Date())) ), conditionalPanel("output.plot", plotOutput("plot") ), conditionalPanel("output.plotly", plotlyOutput("plotly") )))library(shiny)library(plotly)source("helpers.R")
shinyServer(function(input, output) { output$plot <- renderPlot({ switch(input$plot_type, ua_search_word_cloud = ua_search_word_cloud(input$dates[1],input$dates[2]), req(FALSE) ) }) output$plotly <- renderPlotly({ switch(input$plot_type, ua_views_by_area = ua_views_by_area(input$dates[1],input$dates[2]), ua_age_access = ua_age_access(input$dates[1],input$dates[2]),--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/91fc63c6-7e43-42ca-8225-6210afe0fdf3%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/d5953724-48d3-49c1-89b2-7bb848e8fd85%40googlegroups.com.