Skip to content

rsangole/uros2024-interactive_baseplots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uRos2024: Visualising Large Datasets using Shiny & Arrow

Nov 27 2024

I had the pleasure of talking about this topic at the 2024 uRos conference held in Greece in Nov 2024. I spoke about how very simple tooling in {shiny}, combined with {arrow} can unlock the capability to develop some very powerful interactive tooling in R. I spoke about how we can be quickly scale up our development using shiny modules.

I1 I1

Project Structure

Key Files

  • app.R: Main Shiny application

Key Folders

  • docs/: Contains my presentation
  • R/: R scripts for data manipulation and Shiny modules
  • data/: Datasets.
  • .devcontainer/: Configuration for development container
  • .vscode/: Visual Studio Code settings
  • docker/: Docker configuration files

Usage

Clone the repository:

git clone --depth 1 git@github.com:rsangole/uros2024-interactive_baseplots.git

Running the Project in VS Code Using Dev Containers

  1. Ensure Docker is installed and running on your machine.
  2. Open the project folder in VS Code.
  3. When prompted by VS Code, reopen the folder in the container.
  4. If not prompted, open the Command Palette (Ctrl+Shift+P) and select Remote-Containers: Reopen in Container.
  5. Once the container is built and running, install required R packages:
    renv::restore()
  6. Run the Shiny application:
    shiny::runApp("app.R")
  7. Access the application in your web browser at http://localhost:3838.

Running the Project in RStudio

  1. Open the Project:
    • Open RStudio and navigate to the project directory.
    • Open the app.R file.
  2. Ensure Packages are Installed:
    • Install the required packages using renv:
      renv::restore()
  3. Open and run app.R

Shiny Modules

Shiny modules for interactive visualization are located in the R/ directory. Key modules include:

  • mod_ts.R: Time series visualization module.
  • mod_basics.R: Basic UI components for the application.