Is it possible to generate VBA List Control input (as shown in the screenshot) in an R Shiny dashboard?
VBA List Input Example Screen Shot
There is no reason to mimic that. A selectInput can do that when you set the size argument to a value larger than 1. Check the documentation to see how size works (it has limitations).
Related
This is a workflow related question. I'm trying out working only (or mostly) in the Rmarkdown source window with the options set to "Chunk output inline". So with R open, there is just one big window -The environment, Console and File windows being minimized.
My question: Is there some option to change the number of columns displayed? I want to increase the numbers of columns visible without scrolling (see screenshot below), and since there is enough space I think it should be possible to display more of them.
Many thanks!
Solution: There is an option. Just add cols.print = 12 (or whatever number you want) to global options.
Also, people might find this 'manual' on markdown useful: https://bookdown.org/yihui/rmarkdown/html-document.html#paged-printing
Currently I am working on a project to create a Shiny app that displays something similar to the following:
The interactive part of Shiny and the underlying data cleaning code is done. What I need help with is finding a package for customizing the table.
Strictly speaking it is a table, with one observation (the name of which is not included) with 15 variables displayed in a grid pattern. The name of the variable is referenced as "Info x" on the picture and the value is the red x or green check. (In my actual work, each variable has 3 different levels, and they should be displayed with either some custom graphic (that I would also need a package for) or text). In Shiny the output should be a picture, that can also be downloaded (just like a plot).
Try the GT package -->
https://gt.rstudio.com/
or you can use kable --> https://bookdown.org/yihui/rmarkdown-cookbook/kable.html
I have used both, but maybe GT would be better suited for your case
I created an object that is viewed in the RStudio viewer, such as chart in plotly or highcharter or a map in leaflet. I would like to save that object as a png. There are a number of ways to do this. For example, there's this method that uses webshot. It's possible to use orca. There are several methods. The problem with all of these is that the output image is slightly different than the version seen in the viewer. This is a problem for me because I need both the interactive version of the chart as well as a static version and I don't want to have to create two versions and write all the code associated with producing both to make sure each one comes out just as I need.
However, RStudio has a built-in method that can be accessed by clicking "Export -> Save as Image" in the viewer pane. I would like to use this method because it preserves the layout exactly as seen in the viewer.
I tried using R's built-in plot saving method of png, plot and devoff, but that appears to only work for plot objects, not viewer objects.
There has to be a way to reproduce the physical steps of saving as an image in RStudio programmatically, right? Doing it manually would be really time-consuming.
Here's an sample chart in plotly that shows up in the viewer.
plot_ly(z = ~volcano, type = "surface")
I am trying to build a dynamic UI that reacts to user input. Is there a way that in a first step, an input mask is shown and after filling in a value, I can do some computation and conditional on it show a second input mask?
I am new to shiny and just trying to clarify whether it is possible or not to do this in Shiny. I very much appreciate any help!
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