victimofmaths / covidmapper Goto Github PK
View Code? Open in Web Editor NEWShiny app mapping potential COVID risks by Local Authority in England
Shiny app mapping potential COVID risks by Local Authority in England
Hi Colin,
Demo of some potential tweaks to the UI (moving a few bits of your code and commenting out some).
https://andysouth.shinyapps.io/COVIDmapper-tweaked/
Code :
https://github.com/andysouth/COVIDmapper
Too nice outside to be in doing this, I'm going out now.
I can submit a pull request later if you'd like, no obligation, no rush.
Andy
Seems like the data folder and shapefile are missing from the repo :-)
Dear @VictimOfMaths,
I hope you are well!
Hope you can help me out, thanks.
Within your output plot store the final plot
:
`output$plot <- renderPlot({
.....
finalplot = ggdraw()+
draw_plot(plot, 0,0,1,1)+
eval(parse(text=ifelse(input$legendpos==5, "NULL", paste0("draw_plot(key,", legpos, ")"))))
covid_download <<- reactive({finalplot})
print(finalplot)
})
})`
Within your UI add this:
fluidPage(
...
#Set up main panel for the plot
mainPanel(
fluidRow(plotOutput("plot")),
br(),
fluidRow(downloadButton('covid_download'))
) # end mainpanel
) # end sidebar
)
I don't have the original shape file so can't check that it works.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.