Type: | Package |
Title: | Location Identify Tool |
Version: | 0.1.8 |
Date: | 2025-01-09 |
Author: | shiao chih hao [aut, cre, ctb], chang shu ting [aut, ctb], wang shyh jiun [aut, ctb] |
Maintainer: | shiao chih hao <chihhao@ofdc.org.tw> |
Description: | Determine the sea area where the fishing boat operates. The latitude and longitude of geographic coordinates are used to match oceanic areas and economic sea areas. You can plot the distribution map with dotplot() function. Please refer to Flanders Marine Institute (2020) <doi:10.14284/403>. |
License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
Depends: | R (≥ 3.5.0) |
Imports: | sf, broom, ggplot2, maps, spData, methods |
Encoding: | UTF-8 |
RoxygenNote: | 7.3.1 |
LazyData: | true |
Collate: | 'idfocean.R' 'idfeez.R' 'data.R' 'dotplot.R' 'idfland.R' 'idfcode.R' 'idfport.R' 'sixtytoten.R' |
NeedsCompilation: | no |
Packaged: | 2025-01-09 07:17:04 UTC; chihhao |
Repository: | CRAN |
Date/Publication: | 2025-01-09 07:30:02 UTC |
dotplot
Description
This function allows you to draw data distribution geographically from a numeric vector.
Usage
dotplot(
lona,
lata,
map = "ALL",
grid = FALSE,
color = "#FF0000",
size = 1,
shape = 16
)
Arguments
lona |
Input the longitude. |
lata |
Input the latitude. |
map |
default is "ALL", Other possible options is "PAC", "IND" and "ATL". |
grid |
default is FALSE, when TRUE show the 5 degree grid. |
color |
default is "#FF0000", define the color of points. |
size |
default is 1, define the size of points. |
shape |
default is 16, define the shape of points. |
Value
the plot of lona
and lata
.
Examples
dotplot(141,23)
Eez Coefficients
Description
Predictor feature coefficients as published in paper.
Usage
eez_rg
Format
eez_rg data.frame with 2 variables: geneName
, coef
idfcode
Description
This function allows you to convert the location to 4 digital code
Usage
idfcode(lon, lat)
Arguments
lon |
Input the longitude. |
lat |
Input the latitude. |
Examples
idfcode(22,-5)
idfeez
Description
This function allows you to identify location in which EEZ from a numeric vector.
Usage
idfeez(lon, lat, ac = TRUE)
Arguments
lon |
Input the longitude. |
lat |
Input the latitude. |
ac |
logical. If |
Examples
idfeez(141,23)
idfland
Description
This function allows you to identify location in which land or ocean.
Usage
idfland(lon, lat)
Arguments
lon |
Input the longitude. |
lat |
Input the latitude. |
Examples
idfland(22,-5)
idfocean
Description
Return The Pacific Ocean(PAC), Indian Ocean(IND) or Atlantic Ocean(ATL) of your coordinate.
Usage
idfocean(lon, lat)
Arguments
lon |
Input the longitude. |
lat |
Input the latitude. |
Value
the ocean of lon
and lat
.
Examples
idfocean(125,20)
idfport
Description
This function allows you to identify port name from a numeric vector.
Usage
idfport(lon, lat)
Arguments
lon |
Input the longitude. |
lat |
Input the latitude. |
Examples
idfport(121.8006,25.14065)
port position
Description
define the position of port in the world
Usage
port_sf
Format
port_sf data.frame with 2 variables: row.names
, id
sixtytoten
Description
This function allows you to transfer the coordinate system from sexagesimal to decimal
Usage
sixtytoten(num)
Arguments
num |
Input a value of longitude or latitude. |
Examples
sixtytoten(121.49)