0

My code looks like this:

shinyServer(function(input, output) {
    DataRead <- reactive(input$PlotType)
    CR <- reactive(as.character(input$ContributionRate))
    PlotData <- reactive(get(paste(CR(),DataRead(),sep="")))
    output$gPlot <- renderGvis({gvisLineChart(PlotData(),
        options=...)
    })
})

I'm assuming the get() function isn't passing the data.frame through to PlotData(), which makes the HTML render blank.

My ui.R is using htmlOutput().

Anyone know what the issue is?

Cyrus Mohammadian
  • 4,982
  • 6
  • 33
  • 62
milkmotel
  • 402
  • 4
  • 13
  • Try something with return() or print(). If you can store a ggvisplot in an object you can use that object or otherwise put it directly around yhe gvis function – Huub Hoofs Sep 13 '16 at 21:10
  • It didn't help. It's either not rendering properly or there is nothing to render, since I'm not getting any errors. – milkmotel Sep 13 '16 at 21:22
  • I ran it in a browser and it's working fine now, except that one of my plots with 6 lines is only rendering a few of them, and as I move the slider, more disappear. However, if I mouse over the line, the data points are still there. The line just isn't being colored. – milkmotel Sep 13 '16 at 21:35

1 Answers1

0

The HTML only renders in a browser window. That was my issue.

However, now there is a problem where not all of the lines will show. The points still display data when moused-over but the line itself is invisible.

milkmotel
  • 402
  • 4
  • 13