Skip to main content

Posts

Showing posts from May, 2016

Shiny Programming: Highcharter library returning data to page with multiple draggable points

This post is an extension to the post where we now plot multiple lines and each line is draggable. Highcharter library returning data to page with draggable points Thanks to the SO post by jbkunst. server.R library(shiny) library(highcharter) library(data.table) myData <- data.table(x=2012:2016, data.frame(myYax = c(3900,  4200,  5700,  8500, 11900), myZax=c(3900,  4200,  500,  800, 1000))) shinyServer(function(input, output) {     #Make a copy of the data table. It will be run only once when use opens the application   m_data <- myData     output$text1 <- renderText({     paste("You have selected ",input$xaxis_name)   })     output$text2 <- renderText({     paste("You have selected ",input$yaxis_name)   })     output$view <- renderTable({               ...