plotGrouper

list(name = “John D. Gagnon”, affiliation = “University of California, San Francisco”, email = “john.gagnon.42@gmail.com”)

2024-05-01

logo

Description

A tool for generating figure-ready graphs from file. It borrows heavily from packages developed by others, including ggplot2 and dplyr from the tidyverse and batch statistical calculations from ggpubr.

Plots can be made using combinations of geoms including bar, violin, box, crossbar, density, point, line, and errorbar.



Prerequisites

  1. If you do not already have R installed, or your version is out of date, download the latest version Here.
  1. Download the package from Bioconductor.
if (!requireNamespace("BiocManager", quietly = TRUE))
  install.packages("BiocManager")
  BiocManager::install("plotGrouper")
BiocManager::install("jdgagnon/plotGrouper")
devtools::install_github("jdgagnon/plotGrouper")

Usage

Load the package into the R session.

library(plotGrouper)

To initialize the shiny app, paste the following code in your R console and run it.

plotGrouper()

Once the web app opens, you can access the iris dataset by clicking the iris button to learn how to use the app. After the iris data loads, the selection windows will be automatically populated and a graph should be displayed.
The Raw Data tab displays the structure of the data loaded. Your file should be organized in the following way:

Unique identifier Comparisons Variables
Sample Species Sepal.Length
setosa_1 setosa 5.1
setosa_2 setosa 4.9
versicolor_1 versicolor 7
versicolor_2 versicolor 6.4
virginica_1 virginica 6.3
virginica_2 virginica 5.8
etc… etc… etc…

These columns can be titled anything you want but values in the columns are important.

After importing a data file, a Sheet column will be created and populated with the sheet name(s) from the file if it came from an excel spreadsheet or the file name if it came from a csv or tsv file.

To prevent the Shapes, Colors, or Fills from reverting to their defaults, click the Lock checkboxes.

Individual plots can be saved by clicking Save on the Plot tab or multiple plots may be arranged on a single page by clicking Add plot to report. Clicking this button will send the current plot to the Report tab and assign it a number in the Report plot # dropdown menu. To revisit a plot stored in the Report tab, select the plot you wish to restore and click Load plot from report. Changes can be made to this plot and then updated in the Report by clicking Update plot in report.

Session info

Here is the output of sessionInfo() on the system on which this package was developed:

sessionInfo()
## R version 4.4.0 beta (2024-04-15 r86425)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 22.04.4 LTS
## 
## Matrix products: default
## BLAS:   /home/biocbuild/bbs-3.19-bioc/R/lib/libRblas.so 
## LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0
## 
## locale:
##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
##  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
##  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
##  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
##  [9] LC_ADDRESS=C               LC_TELEPHONE=C            
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
## 
## time zone: America/New_York
## tzcode source: system (glibc)
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## loaded via a namespace (and not attached):
##  [1] compiler_4.4.0    fastmap_1.1.1     cli_3.6.2         htmltools_0.5.8.1
##  [5] tools_4.4.0       knitr_1.46        digest_0.6.35     xfun_0.43        
##  [9] mime_0.12         rlang_1.1.3       evaluate_0.23



License

GNU GPL-3.0-or-later