plot_data: Plot location of sampling data

View source: R/plot_data.R

plot_dataR Documentation

Plot location of sampling data

Description

plot_data produces diagnostics plots for the spatial distribution of data and knots

Usage

plot_data(
  Extrapolation_List,
  Spatial_List,
  Data_Geostat = NULL,
  Lat_i = Data_Geostat[, "Lat"],
  Lon_i = Data_Geostat[, "Lon"],
  Year_i = Data_Geostat[, "Year"],
  PlotDir = getwd(),
  Plot1_name = "Data_and_knots.png",
  Plot2_name = "Data_by_year.png",
  col = "red",
  cex = 0.1,
  pch = 19,
  year_labels,
  projargs = "+proj=longlat",
  map_resolution = "medium",
  land_color = "grey",
  country = NULL,
  ...
)

Arguments

Extrapolation_List

Output from Prepare_Extrapolation_Data_Fn

Spatial_List

Output from Spatial_Information_Fn

Data_Geostat

data-frame of data (with columns 'E_km', 'N_km', 'Year', 'Lon', 'Lat' at a minimum)

PlotDir

Directory for plots

year_labels

character vector specifying names for labeling times t_i

projargs

Character passed to CRS and see that documentation for description. See https://proj.org/operations/projections/index.html for a list of projections to pass via projargs. As a stable default please consider projargs='+proj=natearth +lon_0=0 +units=km' where argument +lon_0 allows the user to center eastings on a specified longitude.

land_color

color for filling in land (use land_color=rgb(0,0,0,alpha=0) for transparent land)

country

a character vector of country names.

...

addition inputs to plot


James-Thorson/FishStatsUtils documentation built on July 21, 2024, 2:17 a.m.