Skip to content

Commit

Permalink
updating plotallindicators script
Browse files Browse the repository at this point in the history
  • Loading branch information
CarissaGervasi-NOAA committed Jun 20, 2024
1 parent 6321086 commit f6f0026
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
16 changes: 11 additions & 5 deletions indicator_objects/PlotAllIndicators.R
Original file line number Diff line number Diff line change
Expand Up @@ -171,21 +171,27 @@ plotIndicatorTimeSeries(ind, coltoplot = 1:2, trendAnalysis = T, sublabel = T)
### 31. Number of seasonal closures implemented

#Indicator 31

### 32. Number of seasonal closures implemented

load("indicator_objects/tier3.RData")
plotIndicatorTimeSeries(ind, plotrownum = 2, coltoplot = 1:2, sublabel = TRUE, dateformat = "%Y%b", trendAnalysis = T)

### 32. Number of education and outreach events
### 33. Number of education and outreach events

#Indicator 32
load("indicator_objects/outreach.RData")
plotIndicatorTimeSeries(ind, coltoplot = 1:2, plotrownum = 2, trendAnalysis = T)

### 33. Number of enforcement actions
### 34. Number of enforcement actions

#Indicator 33

### 34 Percent coral cover
### 35. Percent coral cover

load("indicator_objects/coral_spprichness_cover.RData")
plotIndicatorTimeSeries(ind, coltoplot = 1:4, sublabel = T, trendAnalysis = T)

### 35. Coral species diversity
### 36. Coral species diversity

load("indicator_objects/coral_spprichness_cover.RData")
plotIndicatorTimeSeries(ind, coltoplot = 1:4, sublabel = T, trendAnalysis = T)
Expand Down
Binary file modified indicator_objects/tier3.RData
Binary file not shown.
3 changes: 2 additions & 1 deletion indicator_processing/non_automated/tier_designation.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ inddata <- data.frame(cbind(PR, USVI))
labs <- c("Stocks/complexes with Tier 3 designation" , "Percent", "Puerto Rico",
"Stocks/complexes with Tier 3 designation" , "Percent", "USVI")
indnames <- data.frame(matrix(labs, nrow = 3, byrow = F))
ind <- list(labels = indnames, indicators = inddata, datelist = datdata)
inddata <- list(labels = indnames, indicators = inddata, datelist = datdata)
class(inddata) <- "indicatordata"

# plot and save ----------------------------------
ind <- inddata
plotIndicatorTimeSeries(ind, plotrownum = 2, coltoplot = 1:2, sublabel = TRUE, dateformat = "%Y%b", trendAnalysis = T)

save(ind, file = "indicator_objects/tier3.RData")

0 comments on commit f6f0026

Please sign in to comment.