Skip to content

Commit

Permalink
Merge pull request #138 from NOAA-EDAB/dev
Browse files Browse the repository at this point in the history
update DESCRIPTION with version number 5.0.1
  • Loading branch information
andybeet authored Mar 8, 2024
2 parents a1c77dc + a8ed3fd commit 3b999d9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ecodata
Title: Documentation of Ecosystem Indicator Reporting
Version: 5.0.0
Version: 5.0.1
Authors@R: c(person("Brandon", "Beltz", email = "[email protected]", role = c("cre", "aut")),
person("Kimberly", "Bastille", email = "[email protected]", role = "aut"),
person("Sean", "Hardison", role = "aut"))
Expand Down
3 changes: 2 additions & 1 deletion R/plot_habitat_diversity.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' plot habitat diversity
#'
#' Plots ecodata::habitat_diversity (Shanon index)
#' Plots ecodata::habitat_diversity (Shannon index and species richness)
#'
#' @param shadedRegion Numeric vector. Years denoting the shaded region of the plot (most recent 10)
#' @param report Character string. Which SOE report ("MidAtlantic", "NewEngland")
Expand Down Expand Up @@ -130,5 +130,6 @@ plot_habitat_diversity <- function(shadedRegion = NULL,

}


attr(plot_habitat_diversity,"varName") <- c("Richness") #removed "Diversity", argument for varName per Laurel's request
attr(plot_habitat_diversity,"report") <- c("MidAtlantic","NewEngland")
12 changes: 9 additions & 3 deletions R/plot_productivity_anomaly.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ plot_productivity_anomaly <- function(shadedRegion = NULL,
setup <- ecodata::plot_setup(shadedRegion = shadedRegion,
report=report)

# this should be added to plot_setip
leg_font_size <- 6

# which report? this may be bypassed for some figures
if (report == "MidAtlantic") {
if (varName == "anomaly") {
Expand Down Expand Up @@ -59,7 +62,8 @@ plot_productivity_anomaly <- function(shadedRegion = NULL,
prod<- ecodata::productivity_anomaly |>
tidyr::separate(Var, into = c("Stock", "Var"), sep = "-") |>
dplyr::filter(EPU == filterEPUs,
Var == "rs_anom")
Var == "rs_anom") |>
dplyr::mutate(Stock = toupper(Stock))

# code for generating plot object p
# ensure that setup list objects are called as setup$...
Expand All @@ -86,7 +90,8 @@ plot_productivity_anomaly <- function(shadedRegion = NULL,
axis.text = ggplot2::element_text(size = 10),
plot.title = ggplot2::element_text(size = 12),
#legend.text = element_text(size = leg_font_size),
legend.title = ggplot2::element_blank())
legend.title = ggplot2::element_blank(),
legend.text=ggplot2::element_text(size=6))

}

Expand All @@ -109,6 +114,7 @@ plot_productivity_anomaly <- function(shadedRegion = NULL,
height = 5.5,
width = 9,
filt = FALSE,
leg_font_size = leg_font_size,
label = "",
y.text = 10,
aggregate = TRUE)
Expand All @@ -133,7 +139,7 @@ plot_stackbarcpts_single <- function(YEAR, var2bar,
x, xlab, ylab,
titl,
file_suffix,
leg_font_size = 6,
leg_font_size = leg_font_size,
remove_leg = FALSE,
leg_ncol = 1,
wcpts = TRUE,
Expand Down
2 changes: 1 addition & 1 deletion man/plot_habitat_diversity.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added workshop/images/MAP_SST_Gulf_Stream_2024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3b999d9

Please sign in to comment.