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.
if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install("plotGrouper")
Load the package into the R session.
To initialize the shiny app, paste the following code in your R console and run it.
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.
Raw Data tab displays the structure of the data loaded. Your file should
be organized in the following way:
These columns can be titled anything you want but values in the columns are important.
Unique identifier column should contain only unique values that
identify each individual sample (e.g.,
Comparisons column should contain replicated values that identify each
individual as belonging to a group (e.g.,
Variables column(s) should created for each variable you wish
to plot. The values in these columns must be numeric (e.g.,
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.
Variables to plot selection window is used to choose which variable(s)
to plot (e.g.,
Sepal.Width from the
iris data). If multiple are selected,
they will be grouped according to the
Independent variable selected.
Comparisons selection window is used to choose which column contains
theinformation that identifies which condition each sample belongs to (e.g.,
Species column within the
Independent variable selection window is used to select how the plots
should be grouped. If
variable is selected (the default), the plots will be
grouped by the values in
Variables to plot.
Shapes selector to change the shape of the points for each
Colors selector to change the point colors for each
Fills selector to change the fill color for the other geoms being
plotted for each comparison variable.
To prevent the
Fills from reverting to their defaults,
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
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
Report by clicking
Update plot in report.
The statistics calculated for the current plot being displayed in the
tab are stored in the
Statistics tab. These can be saved by clicking the
Download button on the
Plot Data tab contains the reorganized subset of data being plotted.
Raw Data tab displays the dataframe that was created upon import of the
file along with the automatically created
Here is the output of
sessionInfo() on the system on which this package was
## R version 3.6.1 (2019-07-05) ## Platform: x86_64-pc-linux-gnu (64-bit) ## Running under: Ubuntu 18.04.3 LTS ## ## Matrix products: default ## BLAS: /home/biocbuild/bbs-3.10-bioc/R/lib/libRblas.so ## LAPACK: /home/biocbuild/bbs-3.10-bioc/R/lib/libRlapack.so ## ## locale: ##  LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C ##  LC_TIME=en_US.UTF-8 LC_COLLATE=C ##  LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 ##  LC_PAPER=en_US.UTF-8 LC_NAME=C ##  LC_ADDRESS=C LC_TELEPHONE=C ##  LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C ## ## attached base packages: ##  stats graphics grDevices utils datasets methods base ## ## loaded via a namespace (and not attached): ##  compiler_3.6.1 magrittr_1.5 markdown_1.1 htmltools_0.4.0 ##  tools_3.6.1 Rcpp_1.0.2 stringi_1.4.3 highr_0.8 ##  knitr_1.25 digest_0.6.22 stringr_1.4.0 xfun_0.10 ##  mime_0.7 rlang_0.4.1 evaluate_0.14