Skip to content

Commit

Permalink
added the nmfspalette package's color palette to the figures in the a…
Browse files Browse the repository at this point in the history
…dd_theme function
  • Loading branch information
sbreitbart-NOAA committed Sep 25, 2024
1 parent 1be1257 commit 60b801c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/add_theme.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ add_theme <- function(x) {
panel.grid = ggplot2::element_blank(),
panel.border = ggplot2::element_rect(colour = "black", fill = NA, linewidth = 0.5)
# text = ggplot2::element_text(size = 12, family = "Cambria")
)
) +
# add nmfs color palette (palette will be default)
# I believe including both functions is fine and will
# works regardless of the type of plot (one won't be used)
nmfspalette::scale_color_nmfs() +
nmfspalette::scale_fill_nmfs()
# Determining how to treat a legend if there is one
# check if one is present
# check_for_legend <- function(x) {
Expand Down

0 comments on commit 60b801c

Please sign in to comment.