View source: R/spatial_occupancy.R
spatial_occupancy | R Documentation |
Changes in the spatial extent of the fishery over time. Annual number of 1-degree squares explored by each vessel.
spatial_occupancy(
dataframe,
graph_type = "plot",
fishing_type = "ALL",
title = FALSE
)
dataframe |
data.frame expected. 'Csv' or 'output' of the function data_extraction, which must be done before using the spatial_occupancy() function. |
graph_type |
character expected. 'plot', 'plotly' or 'table'. Plot by default. |
fishing_type |
character expected. ALL, FOB and FSC. |
title |
TRUE or FALSE expected. Title for plotly graph_type. False by default. |
The input dataframe must contain all these columns for the function to work [see referentials]:
activity_date | cwp11_act | positive_set | total_set | total_hour_fished | school_type -------------------------------------------------------------------------------------- 2010-03-06 | 404004 | 0 | 0 | 7.0 | UND 2010-12-04 | 404005 | 0 | 0 | 24.0 | FSC 2010-05-19 | 404005 | 0 | 0 | 8.0 | FOB
Add these columns for an automatic title (optional):
country_code
ocean_code
vessel_type_code
The function return ggplot R plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.