From 3000189d3ac6cfa9efe6a5af477cb434d8e74b18 Mon Sep 17 00:00:00 2001 From: Jouni Helske Date: Fri, 6 Sep 2024 17:54:38 +0300 Subject: [PATCH] ggplot2 --- R/stacked_sequence_plot.R | 3 ++- man/stacked_sequence_plot.Rd | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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")) }