nhs-r-community / demos-and-how-tos

A repo for community contributed demos and how-tos to get common stuff done in the R language
https://nhs-r-community.github.io/demos-and-how-tos/
MIT License
29 stars 13 forks source link

Simple interactive shiny graphics #3

Open ChrisBeeley opened 3 years ago

ChrisBeeley commented 3 years ago

I confess the interactive graphics example in the shiny training https://github.com/nhs-r-community/shiny-training/tree/main/a_and_e_original_interactive is whizzy and designed to show what Shiny can do but it is not simple.

Make a simpler one, or maybe two, one for leaflet and one for ggplot

JonMinton commented 2 years ago

To simplify the creation of an interactive shiny app, I'd suggest including an example using rmarkdown and the YAML param runtime: shiny, as shown in this rmarkdown example. This also makes it fairly easy to add a leaflet example too. (i.e. the examples in the link above can largely be borrowed, if adapted slightly for NHS use cases)

ChrisBeeley commented 2 years ago

Great idea. I'll post the issue on Slack see if anybody would like to contribute

GirlThatGraphs commented 1 year ago

is this any use? https://girlthatgraphs.shinyapps.io/InvestmentForecast1/?_ga=2.176474656.466118818.1679409860-1620915684.1675166170

ChrisBeeley commented 1 year ago

is this any use? https://girlthatgraphs.shinyapps.io/InvestmentForecast1/?_ga=2.176474656.466118818.1679409860-1620915684.1675166170

Are the graphics interactive? They're not showing as such in my browser

GirlThatGraphs commented 1 year ago

the graph is controlled by the 6 selections on the LHS. Are you wanting something with tool tips or something else?

ChrisBeeley commented 1 year ago

the graph is controlled by the 6 selections on the LHS. Are you wanting something with tool tips or something else?

Sorry, yes I mean the actual graph is interactive- clicking, hovering, that kind of thing