diff --git a/R/stacked_sequence_plot.R b/R/stacked_sequence_plot.R index fa5786f6..ab4f0b00 100644 --- a/R/stacked_sequence_plot.R +++ b/R/stacked_sequence_plot.R @@ -52,7 +52,8 @@ #' type = "d", #' legend_position = c("right", "right", "right", "none") #' ) -#' p & ggplot2::theme(plot.margin = unit(c(1, 1, 0, 2), "mm")) +#' library(ggplot2) +#' p & theme(plot.margin = unit(c(1, 1, 0, 2), "mm")) #' stacked_sequence_plot <- function( x, plots = "obs", type = "d", ids, diff --git a/man/stacked_sequence_plot.Rd b/man/stacked_sequence_plot.Rd index a82eaa1b..6a38911e 100644 --- a/man/stacked_sequence_plot.Rd +++ b/man/stacked_sequence_plot.Rd @@ -80,6 +80,7 @@ p <- stacked_sequence_plot( type = "d", legend_position = c("right", "right", "right", "none") ) -p & ggplot2::theme(plot.margin = unit(c(1, 1, 0, 2), "mm")) +library(ggplot2) +p & theme(plot.margin = unit(c(1, 1, 0, 2), "mm")) }