Skip to content

BoutrosLab.plotting.general

Functions to Create Publication-Quality Plots

v7.1.5 · Jan 21, 2026 · GPL-2

Description

Contains several plotting functions such as barplots, scatterplots, heatmaps, as well as functions to combine plots and assist in the creation of these plots. These functions will give users great ease of use and customization options in broad use for biomedical applications, as well as general purpose plotting. Each of the functions also provides valid default settings to make plotting data more efficient and producing high quality plots with standard colour schemes simpler. All functions within this package are capable of producing plots that are of the quality to be presented in scientific publications and journals. P'ng et al.; BPG: Seamless, automated and interactive visualization of scientific data; BMC Bioinformatics 2019 <doi:10.1186/s12859-019-2610-2>.

Downloads

655

Last 30 days

5500th

1.5K

Last 90 days

1.5K

Last year

Trend: -25.2% (30d vs prior 30d)

CRAN Check Status

1 ERROR
13 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc ERROR
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (15 non-OK)
OK r-devel-linux-x86_64-debian-clang

*


            
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘BoutrosLab.plotting.general-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: create.multipanelplot
> ### Title: Joins plots together
> ### Aliases: create.multipanelplot
> ### Keywords: hplot
> 
> ### ** Examples
> 
> set.seed(12345);
> # begin by creating the individual plots which will be combined into a multiplot
> dist <- data.frame(
+     a = rnorm(100, 1), 
+     b = rnorm(100, 3), 
+     c = rnorm(100, 5)
+     );
> 
> simple.data <- data.frame(
+     x = c(dist$a, dist$b, dist$c),
+     y = rep(LETTERS[1:3], each = 100)
+     );
> fill.squares <- matrix(c(1, 0, 0, 0, 1, 0, 0, 0, 1), ncol = 3, byrow = TRUE);
> rownames(fill.squares) <- c("Drug I only", "Drug II only" , "Drugs I & II");
> colnames(fill.squares) <- levels(factor(simple.data$y));
> 
> # Create plot # 1
> simple.boxplot <- create.boxplot(
+     formula = x ~ y,
+     data = simple.data,
+     xaxis.lab = c('','',''),
+     main.x = 0.57,
+     ylab.label = 'Sugar Level',
+     xlab.label = '',
+     col = 'lightgrey',
+     xaxis.tck = c(0,0),
+     yaxis.tck = c(1,0),
+     yaxis.lab = seq(-1,8,2) ,
+     yat = seq(-1,8,2),
+     left.padding = 0,
+     right.padding = 0,
+     lwd = 2
+     );
> 
> # Create plot # 2
> simple.heatmap <- create.heatmap(
+     x = t(fill.squares),
+     clustering.method = 'none',
+     shrink = 0.8,
+     yaxis.lab = c(3,2,3),
+     yaxis.tck = 1,
+     xaxis.lab = c('A','B','C'),
+     ylab.label = 'Drug Regimen',
+     xlab.label = 'Patient Group',
+     colour.scheme = c("white", "grey20"),
+     fill.colour = "white",
+     print.colour.key = FALSE,
+     left.padding = 0,
+     xaxis.tck = c(1,0),
+     right.padding = 0,
+     xaxis.rot = 0
+     );
> 
> create.multipanelplot(
+     # filename = tempfile(pattern = 'Multipanelplot_Simple', fileext = '.tiff'),
+     plot.objects = list(simple.boxplot,simple.heatmap), 
+     y.spacing = 1,  
+     ylab.axis.padding = 2, 
+     main = 'Simple', 
+     top.padding = 2,
+     resolution = 200
+     );
Error in basename(x) : a character vector argument expected
Calls: create.multipanelplot ... file_ext -> ifelse -> grepl -> is.factor -> basename
Execution halted
ERROR r-devel-linux-x86_64-debian-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘PlottingGuide.Rnw’ using knitr_notangle
Warning in remind_sweave(if (in.file) input, sweave_lines) :
  It seems you are using the Sweave-specific syntax in line(s) 2303, 2363; you may need Sweave2knitr("PlottingGuide.Rnw") to convert it to knitr

Quitting from PlottingGuide.Rnw:2303-2353 [auto-axis-scaling]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `basename()`:
! a character vector argument expected
---
Backtrace:
    x
 1. \-global create.auto.axis.examples()
 2.   \-BoutrosLab.plotting.general::create.multipanelplot(...)
 3.     \-BoutrosLab.plotting.general:::get.legend.height(...)
 4.       \-tools::file_ext(filename)
 5.         +-base::ifelse(...)
 6.         +-base::grepl("^(.*[^.]+.*)[.]([[:alnum:]]+)$", basename(x))
 7.         | \-base::is.factor(x)
 8.         \-base::basename(x)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'PlottingGuide.Rnw' failed with diagnostics:
a character vector argument expected
--- failed re-building ‘PlottingGuide.Rnw’

SUMMARY: processing the following file failed:
  ‘PlottingGuide.Rnw’

Error: Vignette re-building failed.
Execution halted
OK r-devel-linux-x86_64-fedora-clang

*


            
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
OK r-devel-windows-x86_64

*


            
OK r-oldrel-macos-arm64

*


            
OK r-oldrel-macos-x86_64

*


            
OK r-oldrel-windows-x86_64

*


            
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
OK r-release-macos-arm64

*


            
OK r-release-macos-x86_64

*


            
OK r-release-windows-x86_64

*


            

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 9, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘BoutrosLab.plotting.general-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: create.multipanelplot
> ### Title: Joins plots together
> ### Aliases: create.multipanelplot
> ### Keywords: hplot
> 
> ### ** Examples
> 
> set.seed(12345);
> # begin by creating the individual plots which will be combined into a multiplot
> dist <- data.frame(
+     a = rnorm(100, 1), 
+     b = rnorm(100, 3), 
+     c = rnorm(1

Reverse Dependencies (3)

Dependency Network

Dependencies Reverse dependencies lattice latticeExtra cluster hexbin gridExtra gtable e1071 MASS ApplyPolygenicScore CancerEvolutionVisualization OmicsQC BoutrosLab.plotting.general

Version History

new 7.1.5 Mar 9, 2026