Skip to content

Commit

Permalink
updating export functions
Browse files Browse the repository at this point in the history
  • Loading branch information
einartornes committed Feb 22, 2023
1 parent ee244b4 commit a0f8b56
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
9 changes: 8 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
exportPattern("^[[:alpha:]]+")
# Generated by roxygen2: do not edit by hand

export(norad_pal)
export(scale_color_norad)
export(scale_color_norad_c)
export(scale_fill_norad)
export(scale_fill_norad_c)
export(theme_norad)
5 changes: 5 additions & 0 deletions R/palette_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ norad_cols <- function(...) {
#'
#' @param palette Character name of palette in norad_palettes
#' @param ... Additional arguments
#' @export
#'

norad_pal <- function(palette = "main", ...) {
Expand Down Expand Up @@ -103,6 +104,7 @@ palette_gen_c <- function(palette = "main", direction = 1, ...) {
#' @param palette Character name of palette in norad_palettes
#' @param direction Integer indicating whether the palette should be reversed
#' @param ... Additional arguments passed to discrete_scale()
#' @export
#'

scale_color_norad <- function(palette = "main", direction = 1, ...) {
Expand All @@ -119,6 +121,7 @@ scale_color_norad <- function(palette = "main", direction = 1, ...) {
#' @param palette Character name of palette in norad_palettes
#' @param direction Integer indicating whether the palette should be reversed
#' @param ... Additional arguments passed to discrete_scale()
#' @export
#'

scale_fill_norad <- function(palette = "main", direction = 1, ...) {
Expand All @@ -134,6 +137,7 @@ scale_fill_norad <- function(palette = "main", direction = 1, ...) {
#' @param palette Character name of palette in norad_palettes
#' @param direction Integer indicating whether the palette should be reversed
#' @param ... Additional arguments passed to discrete_scale()
#' @export
#'

scale_color_norad_c <- function(palette = "greenyellow", direction = 1, ...) {
Expand All @@ -149,6 +153,7 @@ scale_color_norad_c <- function(palette = "greenyellow", direction = 1, ...) {
#' @param palette Character name of palette in norad_palettes
#' @param direction Integer indicating whether the palette should be reversed
#' @param ... Additional arguments passed to discrete_scale()
#' @export
#'

scale_fill_norad_c <- function(palette = "greenyellow", direction = 1, ...) {
Expand Down
2 changes: 1 addition & 1 deletion R/style_functions.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#' Function for using Norad's theme in ggplot2 graphics
#'
#'@export
#'@name theme_norad
sysfonts::font_add_google(name = "Arimo")
sysfonts::font_add_google(name = "EB Garamond")
Expand Down

0 comments on commit a0f8b56

Please sign in to comment.