library(RDBEScore) library(dplyr) library(lubridate) library(sf) library(ggplot2) library(rgdal) library(DT) library(plotly) library(biscale) library(cowplot) library(leaflet) library(ggiraph) library(viridis) library(magrittr) library(tidyverse) library(readxl) library(reshape2)
source("coverageEffort.R") source("coverageLandings.R")
This example uses test data in the hierarchy 1 RDBES format.
# Load the test data testData <- createRDBESDataObject("testData/RegionalTestData") # validate the data RDBEScore::validateRDBESDataObject(testData)
Sampling Catch Category: Discards
This output shows the top species discards for each year in the test data - 2018, 2019 & 2020.The bars represent relative species count values per year. The bars are coloured per quarter.
coverageLandings(dataToPlot = testData, var="species", CatchCat = "Dis")
Sampling Catch Category: Landings
This output shows the top species landings for French Vessels in 2018.The bars represent relative species count values per year. The bars are coloured per quarter.
coverageLandings(dataToPlot = testData, year=2018,Vessel_flag= "FR", var="species", CatchCat = "Lan")
Sampling Catch Category: Landings
This output shows the top species landings for all Vessels in 2018 and 2020 in quarters 1 and 4.The bars represent relative species count values per year. The bars are coloured per quarter.
coverageLandings(dataToPlot = testData, year=c(2018,2020),quarter=c(1,4),var="species", CatchCat = "Lan")
Sampling Catch Category: Landings
The following output shows the top gear used in effort and sampling landings for Irish vessels in 2020. The bars represent relative gear count values per plot.
coverageEffort(dataToPlot = testData, year= 2020, Vessel_flag= "IE", var="gear", CatchCat = "Lan")
Sampling Catch Category: Discards
The following output shows the top gear used in effort and sampling discards for French vessels in 2018, quarter 1. The bars represent relative gear count values per plot.
coverageEffort(dataToPlot = testData, year= 2018, quarter=1, Vessel_flag= "FR", var="gear", CatchCat = "Dis")
Sampling Catch Category: Landings
The following output shows the top gear used in landings and sampling landings for all flag vessels in 2019. The bars represent relative gear count values per plot.
coverageLandings(dataToPlot = testData, year=2019,var="gear", CatchCat = "Lan")
Sampling Catch Category: Landings The following output shows the comparison of the landings variable 'CLoffWeight' vs the sampling variable 'SAsampWtLive' for sampling landings. Each plot represents data for one year, and the bars show data per quarter. The values are relative per graph.
coverageLandings(dataToPlot = testData, CommercialVariable="CLoffWeight", SamplingVariable = "SAsampWtLive", CatchCat = "Lan")
Sampling Catch Category: Discards
The following output shows the comparison of the landings variable 'CLsciWeight' vs the sampling variable 'SAnumSamp' for sampling discards in Spanish vessels. The graph shows data for 2020, and the bars show data for quarters 1 and 2. The values are relative per variable for 2020 Q1 & Q2.
coverageLandings(dataToPlot = testData, year=2020,quarter=c(1,2), Vessel_flag = "ES", CommercialVariable="CLsciWeight", SamplingVariable = "SAnumSamp", CatchCat = "Dis")
Sampling Catch Category: Discards
This output shows the comparison of the effort variable 'CEgTFishDay' vs the sampling variable 'SAnumSamp' for sampling discards in Spanish vessels. The graph shows data for 2019, and the bars show data for quarters 2 and 4. The values are relative per variable for 2019 Q2 & Q4.
coverageEffort(dataToPlot = testData, year=2019,quarter=c(2,4), Vessel_flag = "ES", CommercialVariable="CEgTFishDay", SamplingVariable = "SAnumSamp", CatchCat = "Dis")
Sampling Catch Category: Landings
The below output shows the spatial location of the landings variable 'CLoffWeight' and sampling variable 'SAnumSamp' for sampling landings per statistical rectangle. The rectangles are coloured by the landings variable with red representing a higher value and blue representing a lower value. The circles show the sampling variable with higher values representing a larger circle. This output shows data for 2018.
coverageLandings(dataToPlot = testData, year=2018,var="Statrec",CommercialVariable="CLoffWeight",SamplingVariable="SAnumSamp", CatchCat = "Lan", SpatialPlot = "Points" )
Sampling Catch Category: Landings
This bivariate plot shows the spatial location of the landings variable 'CLoffWeight' and sampling variable 'SAsampWtLive' for sampling landings per statistical rectangle. The areas in blue represent higher values for the landings variable. The areas in red represent higher values for the sampling variable. Beige colours show low values for both landings and sampling. Purple shows high values for the landings variable and high values for the sampling variable.This output shows data for 2020.
coverageLandings(dataToPlot = testData, year=2020,var="Statrec",CommercialVariable="CLoffWeight",SamplingVariable="SAsampWtLive", CatchCat = "Lan", SpatialPlot = "Bivariate")
Sampling Catch Category: Landing
This bivariate plot shows the spatial location of the effort variable 'CEsciNumHaulSet' and sampling variable 'SAsampWtMes' for sampling landings per statistical rectangle. The areas in blue represent higher values for the landings variable. The areas in red represent higher values for the sampling variable. Beige colours show low values for both landings and sampling. Purple shows high values for the landings variable and high values for the sampling variable.This output shows data for 2019.
coverageEffort(dataToPlot = testData, year=2019,var="Statrec",CommercialVariable="CEsciNumHaulSet",SamplingVariable="SAsampWtMes", CatchCat = "Lan", SpatialPlot = "Bivariate")
Sampling Catch Category: Discards
The below output shows the spatial location of the effort variable 'CEsciNumHaulSet' and sampling variable 'SAsampWtMes' for sampling discards per statistical rectangle. The rectangles are coloured by the effort variable with red representing a higher value and blue representing a lower value. The circles show the sampling variable with higher values representing a larger circle. This output shows data for 2020 and all vessels.
coverageEffort(dataToPlot = testData, year=2020,var="Statrec",CommercialVariable="CEsciNumHaulSet",SamplingVariable="SAsampWtMes", CatchCat = "Dis", SpatialPlot = "Points")
Sampling Catch Category: Discards
The below output shows the spatial location of the effort variable 'CEscikWFishDay' and sampling variable 'SAnumSamp' for sampling discards per statistical rectangle. The rectangles are coloured by the effort variable with red representing a higher value and blue representing a lower value. The circles show the sampling variable with higher values representing a larger circle. This output shows data for 2019 and Spanish vessels only.
coverageEffort(dataToPlot = testData, year=2019,var="Statrec", Vessel_flag= "ES", CommercialVariable="CEscikWFishDay",SamplingVariable="SAnumSamp", CatchCat = "Dis", SpatialPlot = "Points")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.