Toolkit for Investigation and Visualization of Young Anchovies
Helper function to add faceting to juvenile plots
Helper function to add geoms to juvenile plots
Helper function to add reference line to juvenile plots
Add variables for juveniles, sample length, distance to coast, and dis...
Apply catch weighting to data frame
Helper function to apply theme to juvenile plots
Build request parameters
Calculate coast longitude
Calculate vectorized distances to coastline
Calculate Euclidean distance
Calculate fish weight from length
Calculate grid distance
Calculate distance using Haversine formula
Calculate juvenile percentage
Calculate juvenile statistics for a group
Calculate Manhattan distance between coordinates
Check required packages
Vectorized distance to coast
Convert numbers to weight
Convert dates to standard format
Create download directory
Create fishery dashboard
Helper function to create base plot for juvenile analysis
Helper function to customize axes in juvenile plots
Convert latitude or longitude to decimal degrees
Download file
Extract cookies
Extract length values from column names
Extract data from PDF announcements
Extract points between latitudes
Extract token
Fetch announcements batch
Fetch fishing announcements from external sources
Find column by pattern matching
Find columns by pattern
Find parallel line by distance
Format extracted announcement data
Generate download URL
Generate robust color palette for any number of groups
Get length range from frequencies
Get main page
Interpolate point on line
Check date range
Points on land
Make API request
Merge fishing trips, length and hauls data
Plot fishing zones
Plot juvenile analysis
Generate interactive plot of polygons with leaflet
Generate static plot of polygons on a map
Prepare polygons from coordinate data
Process fishing trip data from PRODUCE sitrapesca files
Process fishing haul data from PRODUCE sitrapesca files
Process JSON response
Process length data from hauls
Process PDF text content
Process weighting block
Safe numeric conversion
Summarize juveniles by group
Tivy: Toolkit for Investigation and Visualization of Young Anchovies
Validate processed fishing trip data quality
Validate processed haul data quality
Validate processed length data quality
Validate data for polygon creation
Weight length frequencies by total catch
Specialized toolkit for processing biological and fisheries data from Peru's anchovy (Engraulis ringens) fishery. Provides functions to analyze fishing logbooks, calculate biological indicators (length-weight relationships, juvenile percentages), generate spatial fishing indicators, and visualize regulatory measures from Peru's Ministry of Production. Features automated data processing from multiple file formats, coordinate validation, spatial analysis of fishing zones, and tools for analyzing fishing closure announcements and regulatory compliance. Includes built-in datasets of Peruvian coastal coordinates and parallel lines for analyzing fishing activities within regulatory zones.