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

> ### 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