Tivy0.1.1 package

Toolkit for Investigation and Visualization of Young Anchovies

add_juvenile_faceting

Helper function to add faceting to juvenile plots

add_juvenile_geoms

Helper function to add geoms to juvenile plots

add_juvenile_reference_line

Helper function to add reference line to juvenile plots

add_variables

Add variables for juveniles, sample length, distance to coast, and dis...

apply_catch_weighting

Apply catch weighting to data frame

apply_juvenile_theme

Helper function to apply theme to juvenile plots

build_request_params

Build request parameters

calculate_coast_longitude

Calculate coast longitude

calculate_distances_vectorized

Calculate vectorized distances to coastline

calculate_euclidean_distance

Calculate Euclidean distance

calculate_fish_weight

Calculate fish weight from length

calculate_grid_distance

Calculate grid distance

calculate_haversine_distance_wgs84

Calculate distance using Haversine formula

calculate_juvenile_percentage

Calculate juvenile percentage

calculate_juvenile_statistics

Calculate juvenile statistics for a group

calculate_manhattan_distance

Calculate Manhattan distance between coordinates

check_required_packages

Check required packages

coast_distance

Vectorized distance to coast

convert_numbers_to_weight

Convert numbers to weight

convert_to_date

Convert dates to standard format

create_download_dir

Create download directory

create_fishery_dashboard

Create fishery dashboard

create_juvenile_base_plot

Helper function to create base plot for juvenile analysis

customize_juvenile_axes

Helper function to customize axes in juvenile plots

dms_to_decimal

Convert latitude or longitude to decimal degrees

download_file

Download file

extract_cookies

Extract cookies

extract_numeric_values

Extract length values from column names

extract_pdf_data

Extract data from PDF announcements

extract_points_between_latitudes

Extract points between latitudes

extract_token

Extract token

fetch_announcements_batch

Fetch announcements batch

fetch_fishing_announcements

Fetch fishing announcements from external sources

find_column

Find column by pattern matching

find_columns_by_pattern

Find columns by pattern

find_parallel_line

Find parallel line by distance

format_extracted_data

Format extracted announcement data

generate_download_url

Generate download URL

generate_robust_colors

Generate robust color palette for any number of groups

get_length_range

Get length range from frequencies

get_main_page

Get main page

interpolate_point

Interpolate point on line

is_date_in_range

Check date range

land_points

Points on land

make_api_request

Make API request

merge_length_fishing_trips_hauls

Merge fishing trips, length and hauls data

plot_fishing_zones

Plot fishing zones

plot_juvenile_analysis

Plot juvenile analysis

plot_zones_interactive

Generate interactive plot of polygons with leaflet

plot_zones_static

Generate static plot of polygons on a map

prepare_polygons

Prepare polygons from coordinate data

process_fishing_trips

Process fishing trip data from PRODUCE sitrapesca files

process_hauls

Process fishing haul data from PRODUCE sitrapesca files

process_json_response

Process JSON response

process_length

Process length data from hauls

process_pdf_text

Process PDF text content

process_weighting_block

Process weighting block

safe_numeric_conversion

Safe numeric conversion

summarize_juveniles_by_group

Summarize juveniles by group

Tivy-package

Tivy: Toolkit for Investigation and Visualization of Young Anchovies

validate_fishing_trip_data

Validate processed fishing trip data quality

validate_haul_data

Validate processed haul data quality

validate_length_data

Validate processed length data quality

validate_polygon_data

Validate data for polygon creation

weight_by_catch

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.

  • Maintainer: Hans Ttito
  • License: MIT + file LICENSE
  • Last published: 2025-07-23