diff --git a/R/save_eps.R b/R/save_eps.R index a68445c..c0fdc7a 100644 --- a/R/save_eps.R +++ b/R/save_eps.R @@ -14,6 +14,7 @@ #' #' @examples #' # Creating theme for ggplot2 graph using default arguments +#' library(ggplot2) #' fig_raw <- ggplot() + #' geom_col(data = mtcars, aes(x = hp , y = mpg, fill = cyl)) + #' theme_ipea() diff --git a/R/scale_ipea.R b/R/scale_ipea.R index f9a3b36..d65e203 100644 --- a/R/scale_ipea.R +++ b/R/scale_ipea.R @@ -33,6 +33,7 @@ #' #' @examples #' # Creating scale for ggplot2 graph using default arguments +#' library(ggplot2) #' fig_raw <- ggplot() + #' geom_point(data = mtcars, aes(x = hp , y = mpg, color = cyl)) + #' scale_color_ipea() @@ -194,6 +195,7 @@ ggplot_add.scale_ipea_color <- function(object, plot, object_name, ...){ #' #' @examples #' # Creating scale for ggplot2 graph using default arguments +#' library(ggplot2) #' fig_raw <- ggplot() + #' geom_col(data = mtcars, aes(x = hp , y = mpg, fill = cyl)) + #' scale_fill_ipea() diff --git a/R/theme_ipea.R b/R/theme_ipea.R index 2726bcc..9b548c5 100644 --- a/R/theme_ipea.R +++ b/R/theme_ipea.R @@ -37,6 +37,7 @@ #' #' @examples #' # Creating theme for ggplot2 graph using default arguments +#' library(ggplot2) #' fig_raw <- ggplot() + #' geom_col(data = mtcars, aes(x = hp , y = mpg, fill = cyl)) + #' theme_ipea() diff --git a/man/save_eps.Rd b/man/save_eps.Rd index bc9a1e5..831d1d1 100644 --- a/man/save_eps.Rd +++ b/man/save_eps.Rd @@ -22,6 +22,7 @@ Convenient function to save charts in Eps format. } \examples{ # Creating theme for ggplot2 graph using default arguments +library(ggplot2) fig_raw <- ggplot() + geom_col(data = mtcars, aes(x = hp , y = mpg, fill = cyl)) + theme_ipea() diff --git a/man/scale_color_ipea.Rd b/man/scale_color_ipea.Rd index 2e864cf..0aa5784 100644 --- a/man/scale_color_ipea.Rd +++ b/man/scale_color_ipea.Rd @@ -57,6 +57,7 @@ Research - Ipea. } \examples{ # Creating scale for ggplot2 graph using default arguments +library(ggplot2) fig_raw <- ggplot() + geom_point(data = mtcars, aes(x = hp , y = mpg, color = cyl)) + scale_color_ipea() diff --git a/man/scale_fill_ipea.Rd b/man/scale_fill_ipea.Rd index 8c21952..5521e7b 100644 --- a/man/scale_fill_ipea.Rd +++ b/man/scale_fill_ipea.Rd @@ -57,6 +57,7 @@ Economic Research (IPEA) } \examples{ # Creating scale for ggplot2 graph using default arguments +library(ggplot2) fig_raw <- ggplot() + geom_col(data = mtcars, aes(x = hp , y = mpg, fill = cyl)) + scale_fill_ipea() diff --git a/man/theme_ipea.Rd b/man/theme_ipea.Rd index 77b489b..dc09b6e 100644 --- a/man/theme_ipea.Rd +++ b/man/theme_ipea.Rd @@ -69,6 +69,7 @@ function includes standardized formatting of options for axis lines, text, } \examples{ # Creating theme for ggplot2 graph using default arguments +library(ggplot2) fig_raw <- ggplot() + geom_col(data = mtcars, aes(x = hp , y = mpg, fill = cyl)) + theme_ipea()