Skip to content

Instantly share code, notes, and snippets.

@masaha03
Created November 10, 2012 03:18
Show Gist options
  • Save masaha03/4049702 to your computer and use it in GitHub Desktop.
Save masaha03/4049702 to your computer and use it in GitHub Desktop.
Shiny server
library(shiny)
library(RFinanceYJ)
library(quantmod)
shinyServer(function(input, output) {
output$plot <- reactivePlot(function() {
data <- quoteStockXtsData(sprintf("%s.t", input$code),
since=input$since,
date.end=input$date.end,
time.interval=input$time.interval)
candleChart(data)
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment