2015년 1월 1일 목요일

[visualization-api] R Shiny users- problem with renderUI and googleVis

This question is for Shiny/R users. I'm using the googleVis package in R and have come across an issue I cannot seem to resolve. When I attempt to use the renderUI function to generate a reactive slider bar that changes depending on the dataset; and that controls the range of values in the plots I get no error, but also no plot. By replacing the google plot  (renderGvis) with a built-in R plot like barplot or other common packages like ggplot2 or ggvis no problem occurs: the slider bar changes with the datasets and the plots change with the slider bar input. The only difference I can see is that renderGvis uses an htmlOutput to render the plot while ggplot2, ggvis, etc. use plotOutput from the renderPlot function. Any ideas? There is a reproducible example here: http://stackoverflow.com/questions/27686604/dynamic-ui-with-googlevis-plot-in-shiny


댓글 없음:

댓글 쓰기