diff --git a/R/helpers_ggplot.R b/R/helpers_ggplot.R index 54f7011..cc0848f 100644 --- a/R/helpers_ggplot.R +++ b/R/helpers_ggplot.R @@ -161,7 +161,7 @@ annotate_conditions_with_panel <- function(plot, panel_name) { #' @importFrom ggplot2 ggplot_build #' @export -ggplot_build.phylepic_ggplot <- function(plot) { +ggplot_build.phylepic_ggplot <- function(plot, ...) { panel_name <- attr(plot, "phylepic.panel") build <- withCallingHandlers( NextMethod(generic = "ggplot_build", object = plot),