[proposal] running gwalkr in shiny
Allow users to build interactive data with gwalkr app in shiny.
Now in python ecosystem, users can use pygwalker with pyhon-shiny to build a data app
Yes it's possible to integrate GWalkR into Shiny! Here is a minimal runnable code snippet to start a Shiny web app with GWalkR, and load an Iris dataset
library(GWalkR)
library(shiny)
library(bslib)
data(iris)
ui <- fluidPage(
titlePanel("GWalkR in Shiny!"),
gwalkrOutput("gwalkrPlot")
)
server <- function(input, output) {
output$gwalkrPlot <- renderGwalkr({
gwalkr(iris)
})
}
shinyApp(ui = ui, server = server)
However, personally I don't use Shiny much for web app dev. If you need more support for features of GWalkR in Shiny, pls post the usage scenarios and requirements below 👀
Add a function to update Gwalkr from the server, such as updateGwalkr(session, id, lang = "en", dark = "dark", ...). Additionally, consider adding a parameter to allow selecting the default tab view (e.g., displaying data instead of visualization).