Skip to content

Commit

Permalink
Fix inability to use do.call with create.scatterplot
Browse files Browse the repository at this point in the history
Switch match.call to sys.call
  • Loading branch information
stefaneng committed Jul 12, 2023
1 parent 5d940ea commit c00134f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions R/create.scatterplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,8 @@ create.lollipopplot <- create.scatterplot <- function(
regions.alpha = 1, lollipop.bar.y = NULL, lollipop.bar.color = 'gray', ...
) {

function.name <- match.call()[[1]];

lollipop.plot <- FALSE;
if (function.name == 'create.lollipopplot') {
lollipop.plot <- TRUE;
}
function.call <- as.character(sys.calls()[[1]]);
lollipop.plot <- 'create.lollipopplot' %in% function.call;

### needed to copy in case using variable to define rectangles dimensions
rectangle.info <- list(
Expand Down

0 comments on commit c00134f

Please sign in to comment.