Sparklines in Shiny using gvisTable - r

I would like to display sparklines in tables Shiny displays, using gvisTable from the googleVis package.
My question is related to this one:
How does one include sparklines and other per-row graphics in a Google Table (or similar)?
For which there is an accepted answer for the javascript version. However, I am not sure how to implement this solution within Shiny.

Related

How to extract selected data from interactive htmlwidget plot

I am trying to figure out a way to extract data from a selection of an interactive plot in Shiny. I build a parallel coordinates plot using a package found at https://github.com/timelyportfolio/parcoords which builds a parcoords chart using htmlWidgets. It allows users to make specific slections, as seen below:
What I need is a way to extract the highlighted rows from the underlying data set, either through a download button or data table. Is there anyway to pull out this info from the underlying htmlWidget process? Any advice is appreciated.
Using crosstalk you can let one htmlwidget talk to another. The dev version of parcoords supports crosstalk integration as does datatable, so you can link the two with minimal effort

dynamic update to data for dygraph in R shiny

Hello I was wondering is it possible to replicate this (http://dygraphs.com/tests/dynamic-update.html) in R shiny?
I am looking at the documentation for the dygraph package (https://rstudio.github.io/dygraphs/index.html) and cannot see anything associated with it updates to data that don't fully re-draw the graph, perhaps some sort of proxy is required?

How to download shiny graph in PDF Formart

I am new to R programming. I have developed a shiny dashboard application for different visualization purposes where I am plotting various graphs with the help of renderDataTable, renderPlot, renderRpivotTable, renderImage renderInfoBox.
But I am unable to figure out what is the best way to download these graphs/charts/table/infobox in PDF format.
So for I am rendering Rmarkdown within downloadHandler to achieve this requirement. But It is not working for every plot such renderInfoBox,renderDataTable. I will highly appreciate any inputs on this.

How can I build Shiny applications with Animation in R?

I am trying to build a shiny app to build interactive animations with R. I currently have a function that can build gifs/other output options using the Animation package(http://cran.r-project.org/package=animation) that loops through a series of ggplots(by date). And also a shiny app that can show a single ggplot based on the selected date.I want to build a shiny app that refreshes an animation based on a selected date range.
Are there examples of code that uses maybe saveHTML with UIoutput in Shiny? Would this be possible?
reset animation in Shiny R Studio shows someone trying to build an animation within Shiny. https://gist.github.com/yihui/5899181 is example of integrating a saveGIF function into a shiny app, but that is through a download.
Alternative suggestions/packages I could look at to approach this problem in R not necessarily using Animation and/or Shiny would also be appreciated.
I suggest using the googleVis package --> the tool, gvisMotionchart. It's really simple to work with, just make sure your data is numeric or time oriented in some way and also have some character/categorical variable to plot as circles. Best of all is that all animation tools are ALREADY included inside the motion chart.
If you want details how to create this, here is a model example of how to detailed in this thread.
Chart not generated in R shiny when run locally using googleVis
Here's a screenshot of an example of one I've created to visualize chess data.
googlevis example

How to download rCharts plots in shiny with downloadHandler

In shiny apps ggplot2 graphs can easily be downloaded based on the downloadHandler function. Is it possible to download the javascript visualisations that are produced by means of rCharts in a similar way? If yes, what is the best approach?
If you use the HighCharts capability of rCharts then you can use it's exporter feature which has an download capability as demonstrated here (source).
If not, you're left with DOM introspection like I ended up using here. That has no R behind it, but it shows how to find the SVG in the DOM and make it so the graphic is exportable in a couple different ways.

Resources