Skip to content

Commit bb51f0c

Browse files
authored
Merge pull request #29 from dracula/28-import-missing-ggplot2-functions
Fix missing `ggplot2` imports
2 parents 4e73573 + bb01ea5 commit bb51f0c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

NAMESPACE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@ export(scale_colour_dracula)
66
export(scale_fill_dracula)
77
export(theme_dracula)
88
importFrom(dplyr,pull)
9+
importFrom(ggplot2,'%+replace%')
910
importFrom(ggplot2,discrete_scale)
11+
importFrom(ggplot2,element_blank)
12+
importFrom(ggplot2,element_line)
13+
importFrom(ggplot2,element_rect)
14+
importFrom(ggplot2,element_text)
1015
importFrom(ggplot2,scale_color_gradientn)
1116
importFrom(ggplot2,scale_fill_gradientn)
17+
importFrom(ggplot2,theme)
18+
importFrom(ggplot2,theme_minimal)
1219
importFrom(tibble,tribble)

R/theme_dracula.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#'
33
#' @description Provides a minimal `ggplot2` theme with a Dracula-ish, dark backdrop.
44
#'
5+
#' @importFrom ggplot2 '%+replace%' theme element_text element_rect element_line element_blank theme_minimal
6+
#'
57
#' @examples
68
#' # Set the current `ggplot2` theme with `ggplot2::theme_set`:
79
#' library(ggplot2)

0 commit comments

Comments
 (0)