Skip to content

stjude-biohackathon/BioShinyModules

Repository files navigation

KIDS23-Team13: Reusable R Shiny modules for common plots and data types

What is a shiny module

Shiny modules is an autonomous shiny app that help to contanerize the code. Therefore they need:

  • a ui to generate the layout of the interface
  • a server to make all the computation
  • a demo to test if everything works

It consumes a reactive variable (data)

Why shiny modules

The magic of modules comes because these functions are constructed in a special way that creates a “namespace”. So far, when writing an app, the names (ids) of the controls are global: all parts of your server function can see all parts of your UI. Modules give you the ability to create controls that can only be seen from within the module. This is called a namespace because it creates “spaces” of “names” that are isolated from the rest of the app.

Shiny modules have two big advantages. Firstly, namespacing makes it easier to understand how your app works because you can write, analyse, and test individual components in isolation. Secondly, because modules are functions they help you reuse code; anything you can do with a function, you can do with a module.

For more informations, follow this link

Aim of this package

This package provide different modules that you can use as they are or that you can easily reusable through your apps. The aim is to provide simple yet effective shiny sub-unit to factorise your code and therefore improve the reading quality anf reusability.

The following modules are available:

  • Data Management
    • dataImport: import one dataframe from csv, xlsx, xls or rda
    • selectVar: select a column based on a dataframe and filtering
  • Export
    • exportPlot: export given plot in different file format
  • Plots
    • plotHist: create a histogram from a numeric variable

Organisation

For information about the organisation of this project please find the organisation.md file.

Contribution

Contribution guidelines can be found in the CONTRIBUTING.md file.

Project board

A project board is used to follow the works in progress.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages