Learn R Programming

DLMtool (version 5.2)

plotMPA: Plot the Historical Spatial Closures

Description

Plot the Historical Spatial Closures

Usage

plotMPA(OM)

Arguments

OM

An object of class OM

Examples

Run this code
# NOT RUN {
OM <- new("OM", Albacore, Generic_Fleet, Perfect_Info, Perfect_Imp)

## 50% of Area 1 was closed 30 years ago 
cl1 <- c(OM@nyears-30, 0.5, 1)
## 80% of Area 1 was closed 15 years ago
cl2 <- c(OM@nyears-15, 0.2, 1)
## 100% of Area 1 was closed last year
cl3 <- c(OM@nyears-1, 0, 1)

OM@MPA <- matrix(c(cl1, cl2, cl3), ncol=3, byrow=TRUE)
plotMPA(OM)

# }

Run the code above in your browser using DataLab