diff --git a/DESCRIPTION b/DESCRIPTION index 282e3cb..3e362ca 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,8 +2,8 @@ Package: NEFSCspatial Title: Spatial data package for regions in the northeast atlantic Version: 0.1.0 Authors@R: c(person("Andy", "Beet", email = "andrew.beet@noaa.gov", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-8270-7090")), - person("Kimberly", "Bastille", email = "kimberly.bastille@noaa.gov", role = "aut"), - person("Joshua", "Hatch", email = "joshua.hatch@noaa.gov", role = "aut")) + person("Joshua", "Hatch", email = "joshua.hatch@noaa.gov", role = "aut"), + person("Kimberly", "Bastille", email = "kimberly.bastille@noaa.gov", role = "aut")) URL: https://github.com/NEFSC/NEFSC-Spatial/, https://nefsc.github.io/NEFSC-Spatial/ BugReports: https://github.com/NEFSC/NEFSC-Spatial/issues Description: Provides spatial data as sf or raster objects for the Northeast Fisheries Science Center @@ -29,7 +29,7 @@ Suggests: hexSticker, ggimage, dplyr, - leaflet, + ggplot2, jsonlite, httr2, gt diff --git a/R/data-mass_inshore_strata.R b/R/data-mass_inshore_strata.R index 5d61c2a..473485f 100644 --- a/R/data-mass_inshore_strata.R +++ b/R/data-mass_inshore_strata.R @@ -17,7 +17,7 @@ #' @usage data('mass_inshore_strata') #' @keywords {datasets} #' @source {https://www.mass.gov/info-details/review-trawl-survey-updates. Division of Marine Fisheries - New Bedford Office. For more info contact the -#' [Resource Assessment Project Leader](https://www.mass.gov/info-details/dmf-staff-directory#fisheries-biology-recreational-fishing-survey-and-assessment) } +#' [Resource Assessment Project Leader](https://www.mass.gov/info-details/dmf-staff-directory#fisheries-biology-recreational-fishing-survey-and-assessment). } #' @examples #' \dontrun{ #' # Load the dataset diff --git a/R/data_GillnetClosureAreas_20211021.R b/R/data_GillnetClosureAreas_20211021.R index 8cfeb4b..51f97a6 100644 --- a/R/data_GillnetClosureAreas_20211021.R +++ b/R/data_GillnetClosureAreas_20211021.R @@ -1,9 +1,9 @@ #' Gillnet Closure Areas #' -#' An sf object containing the Closure areas for Gillnets -#' Specifically Closed Area 1 and Nantucket Lightship Closure Area +#' @description An \code{sf} object containing the closure areas for gillnets. +#' Specifically Closed Area 1 and Nantucket Lightship Closure Area. #' -#' @format A data frame/ sf object (2 x 25) +#' @format An \code{sf} object #' \describe{ #' \item{Geometry type}{POLYGON} #' \item{Dimension}{XY} @@ -11,40 +11,7 @@ #' \item{Geodetic CRS}{NAD83} #' \item{Features}{2 x 26} #' \item{Metadata}{See source} -#' -#' -#' \item{GARFO_ID}{A unique identifier used to identify and track this feature; -#' a new GARFO_ID is generated for each version of a Regulated Area, including -#' proposed or final versions (i.e. whenever boundaries or attributes are -#' changed, edited or updated)} -#' \item{AREANAME}{Official name of the Proposed Area, usually the area name as it will be printed in the CFR.} -#' \item{COMMNAME}{Most commonly used name. May be identical to AREANAME, an abbreviation of AREANAME, or a different name altogether.} -#' \item{AREAGROUP}{Specifies if the Proposed Area is part of a group of related areas.} -#' \item{DESCRIBE}{A brief description of the purpose of the Proposed Area.} -#' \item{CFRTITLE}{CFR Title citation where the Proposed Area will be legally defined} -#' \item{CFRPT}{ACFR Part citation where the Proposed Area will be legally defined} -#' \item{CFRPTTXT}{CFR Part citation header text} -#' \item{CFRSUB}{CFR Subpart citation where the Proposed Area will be legally defined} -#' \item{CFRSUBTXT}{CFR Subpart citation header text} -#' \item{CFRSXN}{CFR Section citation where the Proposed Area will be legally defined} -#' \item{CFRSXNTXT}{CFR Section citation header text} -#' \item{CFRPARA}{CFR Paragraph citation where the Proposed Area will be legally defined} -#' \item{CFRPARATXT}{CFR Paragraph citation header text} -#' \item{FRCITE}{Federal Register citation of proposed rule containing the Proposed Area spatial definition.} -#' \item{FRDATE}{Federal Register citation date of proposed rule containing the Proposed Area spatial definition.} -#' \item{EFFECTDATE}{Date Regulated Area officially became law, or most recent modification. For Proposed Areas, this field will be blank because the area is not yet law.} -#' \item{SOURCE}{If Proposed Area will be defined in the CFR, this is the citation for the Amendment/Framework/etc. that will establish the area. If the Proposed Area will not be defined in the CFR, this is the alternative source citation that will establish the area.} -#' \item{RECURST}{Annually recurring date Proposed Area would become active} -#' \item{RECUREND}{Annually recurring date Proposed Area would become inactive} -#' \item{GISAUTHOR}{Name of the NOAA staff person who created the GIS feature} -#' \item{CREATED}{Creation date of the GIS feature} -#' \item{AREANOTES}{Miscellaneous notes regarding the Proposed Area or feature} -#' \item{X}{x coordinate of polygon center} -#' \item{Y}{y coordinate of polygon center} -#' } -#' -#'@section Contact: -#'andrew.beet at noaa.gov +#' } #' #' #' @docType data @@ -52,4 +19,12 @@ #' @usage data("GillnetClosureAreas_20211021") #' @keywords datasets #' @source \url{https://www.fisheries.noaa.gov/resource/map/gillnet-closure-areas} +#' @examples +#' \dontrun{ +#' # Load the dataset +#' data(GillnetClosureAreas_20211021) +#' +#' # Plot the geometry +#' plot(sf::st_geometry(GillnetClosureAreas_20211021)) +#' } NULL diff --git a/R/data_Great_South_Channel_Restricted_Trap_Pot_Area.R b/R/data_Great_South_Channel_Restricted_Trap_Pot_Area.R index 89cd137..8180ed8 100644 --- a/R/data_Great_South_Channel_Restricted_Trap_Pot_Area.R +++ b/R/data_Great_South_Channel_Restricted_Trap_Pot_Area.R @@ -17,4 +17,12 @@ #' @usage data("Great_South_Channel_Restricted_Trap_Pot_Area") #' @keywords datasets #' @source \url{https://www.fisheries.noaa.gov/resource/map/great-south-channel-restricted-area} +#' @examples +#' \dontrun{ +#' # Load the dataset +#' data(Great_South_Channel_Restricted_Trap_Pot_Area) +#' +#' # Plot the geometry +#' plot(sf::st_geometry(Great_South_Channel_Restricted_Trap_Pot_Area)) +#' } NULL diff --git a/R/data_Herring_Management_Areas.R b/R/data_Herring_Management_Areas.R index 6ac1d04..76297e1 100644 --- a/R/data_Herring_Management_Areas.R +++ b/R/data_Herring_Management_Areas.R @@ -1,6 +1,6 @@ #' @title Herring Management Areas #' -#' @description An \code{sf} object depicting the boundaries of the Herring Management Areas +#' @description An \code{sf} object depicting the boundaries of the Herring Management Areas. #' #' @format An \code{sf} object: #' \describe{ @@ -18,4 +18,12 @@ #' @usage data("Herring_Management_Areas") #' @keywords datasets #' @source \url{https://www.fisheries.noaa.gov/resource/map/herring-management-areas} +#' @examples +#' \dontrun{ +#' # Load the dataset +#' data(Herring_Management_Areas) +#' +#' # Plot the geometry +#' plot(sf::st_geometry(Herring_Management_Areas)) +#' } NULL diff --git a/R/data_LMA1_Restricted_Area_FR.R b/R/data_LMA1_Restricted_Area_FR.R index a0ddfec..1d0b77f 100644 --- a/R/data_LMA1_Restricted_Area_FR.R +++ b/R/data_LMA1_Restricted_Area_FR.R @@ -17,4 +17,12 @@ #' @usage data("LMA1_Restricted_Area_FR") #' @keywords datasets #' @source \url{https://www.fisheries.noaa.gov/resource/map/lma-1-restricted-area} +#' @examples +#' \dontrun{ +#' # Load the dataset +#' data(LMA1_Restricted_Area_FR) +#' +#' # Plot the geometry +#' plot(sf::st_geometry(LMA1_Restricted_Area_FR)) +#' } NULL diff --git a/R/data_NAFO_Divisions_2021_line_enclosed.R b/R/data_NAFO_Divisions_2021_line_enclosed.R index ef6426e..6a7fff3 100644 --- a/R/data_NAFO_Divisions_2021_line_enclosed.R +++ b/R/data_NAFO_Divisions_2021_line_enclosed.R @@ -1,6 +1,6 @@ #' @title NAFO Divisions (Bounded) #' -#' @description An \code{sf} object that depicts the boundaries of the NAFO regions +#' @description An \code{sf} object that depicts the boundaries of the NAFO regions. #' #' @format An \code{sf} object: #' \describe{ @@ -17,4 +17,12 @@ #' @usage data("NAFO_Divisions_2021_line_enclosed") #' @keywords datasets #' @source \url{https://www.nafo.int/Data/GIS} +#' @examples +#' \dontrun{ +#' # Load the dataset +#' data(NAFO_Divisions_2021_line_enclosed) +#' +#' # Plot the geometry +#' plot(sf::st_geometry(NAFO_Divisions_2021_line_enclosed)) +#' } NULL diff --git a/R/data_NAFO_Divisions_2021_line_not_enclosed.R b/R/data_NAFO_Divisions_2021_line_not_enclosed.R index c0dbbc8..597f243 100644 --- a/R/data_NAFO_Divisions_2021_line_not_enclosed.R +++ b/R/data_NAFO_Divisions_2021_line_not_enclosed.R @@ -1,6 +1,6 @@ #' @title NAFO Divisions (Not Bounded) #' -#' @description An \code{sf} object that depicts the boundaries of the NAFO regions +#' @description An \code{sf} object that depicts the boundaries of the NAFO regions. #' #' @format An \code{sf} object: #' \describe{ @@ -17,4 +17,12 @@ #' @usage data("NAFO_Divisions_2021_line_not_enclosed") #' @keywords datasets #' @source \url{https://www.nafo.int/Data/GIS} +#' @examples +#' \dontrun{ +#' # Load the dataset +#' data(NAFO_Divisions_2021_line_not_enclosed) +#' +#' # Plot the geometry +#' plot(sf::st_geometry(NAFO_Divisions_2021_line_not_enclosed)) +#' } NULL diff --git a/R/data_NAFO_Divisions_2021_poly_clipped.R b/R/data_NAFO_Divisions_2021_poly_clipped.R index 90d5288..b6126ac 100644 --- a/R/data_NAFO_Divisions_2021_poly_clipped.R +++ b/R/data_NAFO_Divisions_2021_poly_clipped.R @@ -1,6 +1,6 @@ #' @title NAFO Divisions (Polygon clipped to coastline) #' -#' @description An \code{sf} object that depicts the boundaries of the NAFO regions +#' @description An \code{sf} object that depicts the boundaries of the NAFO regions. #' #' @format An \code{sf} object: #' \describe{ @@ -17,4 +17,12 @@ #' @usage data("NAFO_Divisions_2021_poly_clipped") #' @keywords datasets #' @source \url{https://www.nafo.int/Data/GIS} +#' @examples +#' \dontrun{ +#' # Load the dataset +#' data(NAFO_Divisions_2021_poly_clipped) +#' +#' # Plot the geometry +#' plot(sf::st_geometry(NAFO_Divisions_2021_poly_clipped)) +#' } NULL diff --git a/R/data_NAFO_Divisions_2021_poly_not_clipped.R b/R/data_NAFO_Divisions_2021_poly_not_clipped.R index dae8c71..f63c866 100644 --- a/R/data_NAFO_Divisions_2021_poly_not_clipped.R +++ b/R/data_NAFO_Divisions_2021_poly_not_clipped.R @@ -1,6 +1,6 @@ #' @title NAFO Divisions (Polygon not clipped to coastline) #' -#' @description An \code{sf} object that depicts the boundaries of the NAFO regions +#' @description An \code{sf} object that depicts the boundaries of the NAFO regions. #' #' @format An \code{sf} object: #' \describe{ @@ -17,4 +17,12 @@ #' @usage data("NAFO_Divisions_2021_poly_not_clipped") #' @keywords datasets #' @source \url{https://www.nafo.int/Data/GIS} +#' @examples +#' \dontrun{ +#' # Load the dataset +#' data(NAFO_Divisions_2021_poly_not_clipped) +#' +#' # Plot the geometry +#' plot(sf::st_geometry(NAFO_Divisions_2021_poly_not_clipped)) +#' } NULL diff --git a/R/data_Neus_atlantis.R b/R/data_Neus_atlantis.R index b89ff87..bb8d263 100644 --- a/R/data_Neus_atlantis.R +++ b/R/data_Neus_atlantis.R @@ -1,6 +1,6 @@ #' Northeast US (NEUS) atlantis model domain #' -#' An sf object containing the box level boundaries used in the Northeast Atlantis ecosystem end to end model +#' @description An \code{sf} object containing the box level boundaries used in the Northeast Atlantis ecosystem end to end model. #' #' @format An \code{sf} object: #' \describe{ @@ -18,4 +18,12 @@ #' @keywords datasets #' #' @source \url{https://github.com/NOAA-EDAB/neus-atlantis/wiki/Spatial-extent-of-model} +#' @examples +#' \dontrun{ +#' # Load the dataset +#' data(Neus_atlantis) +#' +#' # Plot the geometry +#' plot(sf::st_geometry(Neus_atlantis)) +#' } NULL diff --git a/R/data_Scallop_Rotational_Areas_20230411.R b/R/data_Scallop_Rotational_Areas_20230411.R index 7ddafea..b9f1a40 100644 --- a/R/data_Scallop_Rotational_Areas_20230411.R +++ b/R/data_Scallop_Rotational_Areas_20230411.R @@ -1,9 +1,9 @@ #' Scallop Restricted Area #' -#' An sf object containing the Scallop Restricted Areas -#' Specifically Area I, II, Nantucket Lightship North, Nantucket Lightship West, New York Bight, Elephant Trunk +#' @description An \code{sf} object containing the Scallop Restricted Areas. +#' Specifically Area I, II, Nantucket Lightship North, Nantucket Lightship West, New York Bight, and Elephant Trunk. #' -#' @format A data frame / sf object (6 x 25) +#' @format An \code{sf} object #' \describe{ #' \item{Geometry type}{POLYGON} #' \item{Dimension}{XY} @@ -11,10 +11,8 @@ #' \item{Geodetic CRS}{WGS 84 / Pseudo-Mercator} #' \item{Features}{6 x 26} #' \item{Metadata}{See source} -#' } +#' } #' -#'@section Contact: -#'andrew.beet at noaa.gov #' #' #' @docType data @@ -22,4 +20,12 @@ #' @usage data("Scallop_Rotational_Areas_20230411") #' @keywords datasets #' @source \url{https://www.fisheries.noaa.gov/resource/map/atlantic-sea-scallop-managed-waters-fishing-year-2023} +#' @examples +#' \dontrun{ +#' # Load the dataset +#' data(Scallop_Rotational_Areas_20230411) +#' +#' # Plot the geometry +#' plot(sf::st_geometry(Scallop_Rotational_Areas_20230411)) +#' } NULL diff --git a/R/data_Statistical_Areas_2010.R b/R/data_Statistical_Areas_2010.R index 14d5579..f96cb92 100644 --- a/R/data_Statistical_Areas_2010.R +++ b/R/data_Statistical_Areas_2010.R @@ -1,9 +1,9 @@ #' Greater Atlantic Region Statistical Areas #' -#' An sf object containing the Greater Atlantic Region Statistical Areas. -#' Pulled from ftp://ftp.nefsc.noaa.gov/pub/gis/ +#' @description An \code{sf} object containing the Greater Atlantic Region Statistical Areas. +#' Pulled from ftp://ftp.nefsc.noaa.gov/pub/gis/. #' -#' @format A data frame/ sf object (135 x 1) +#' @format An \code{sf} object: #' \describe{ #' \item{Geometry type}{MULTIPOLYGON} #' \item{Dimension}{XY} @@ -19,4 +19,12 @@ #' @keywords datasets #' #' @source \url{https://www.fisheries.noaa.gov/resource/map/greater-atlantic-region-statistical-areas} +#' @examples +#' \dontrun{ +#' # Load the dataset +#' data(Statistical_Areas_2010) +#' +#' # Plot the geometry +#' plot(sf::st_geometry(Statistical_Areas_2010)) +#' } NULL diff --git a/R/data_Statistical_Areas_2010_withNames.R b/R/data_Statistical_Areas_2010_withNames.R index 5121954..eb4651a 100644 --- a/R/data_Statistical_Areas_2010_withNames.R +++ b/R/data_Statistical_Areas_2010_withNames.R @@ -1,10 +1,9 @@ #' Greater Atlantic Region Statistical Areas #' -#' An sf object containing the Greater Atlantic Region Statistical Areas. -#' With name labels -#' Pulled from ftp://ftp.nefsc.noaa.gov/pub/gis/ +#' @description An \code{sf} object containing the Greater Atlantic Region Statistical Areas with name labels. +#' Pulled from ftp://ftp.nefsc.noaa.gov/pub/gis/. #' -#' @format A data frame/ sf object (135 x 6) +#' @format A \code{sf} object: #' \describe{ #' \item{Geometry type}{MULTIPOLYGON} #' \item{Dimension}{XY} @@ -20,4 +19,12 @@ #' @keywords datasets #' #' @source \url{https://www.fisheries.noaa.gov/resource/map/greater-atlantic-region-statistical-areas} +#' @examples +#' \dontrun{ +#' # Load the dataset +#' data(Statistical_Areas_2010_withNames) +#' +#' # Plot the geometry +#' plot(sf::st_geometry(Statistical_Areas_2010_withNames)) +#' } NULL diff --git a/R/data_epu_sf.R b/R/data_epu_sf.R index 03ce00c..fc84525 100644 --- a/R/data_epu_sf.R +++ b/R/data_epu_sf.R @@ -1,9 +1,9 @@ #' Ecological Production Units #' -#' An sf object containing the Northeast US shelf Ecological Production Units (EPUs). +#' @description An \code{sf} object containing spatial data for the Northeast US shelf Ecological Production Units (EPUs). #' Ecological Production Units (EPUs) delineate regions unique in physiographic, oceanographic and biotic aspects on the Northeast U.S. Continental Shelf, representing an area of approximately 264,000 km within the 200 m isobath. There are four EPUs on the Shelf, including the Mid-Atlantic Bight (MAB), Georges Bank (GB), Gulf of Maine (GOM), and Scotian Shelf (SS). The Scotian Shelf lies outside the management domain of US Fishery Management Councils and is generally not considered in State of the Ecosystem Reports. #' -#' @format A data frame/ \code{sf} object +#' @format An \code{sf} object #' \describe{ #' \item{Geometry type}{MULTIPOLYGON} #' \item{Dimension}{XY} @@ -17,6 +17,14 @@ #' @docType data #' @name epu_sf #' @usage data("epu_sf") -#' @keywords datasets +#' @keywords {datasets} #' @source \url{https://noaa-edab.github.io/tech-doc/epu.html} +#' @examples +#' \dontrun{ +#' # Load the dataset +#' data(epu_sf) +#' +#' # Plot the geometry +#' plot(sf::st_geometry(epu_sf)) +#' } NULL diff --git a/R/data_final_mass_inshore_stat.R b/R/data_final_mass_inshore_stat.R index 8b9550e..444202d 100644 --- a/R/data_final_mass_inshore_stat.R +++ b/R/data_final_mass_inshore_stat.R @@ -18,4 +18,12 @@ #' @usage data("final_mass_inshore_stat") #' @keywords datasets #' @source \url{https://www.fisheries.noaa.gov/inport/item/33467} +#' @examples +#' \dontrun{ +#' # Load the dataset +#' data(final_mass_inshore_stat) +#' +#' # Plot the geometry +#' plot(sf::st_geometry(final_mass_inshore_stat)) +#' } NULL diff --git a/README.md b/README.md index 8907726..3fad141 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# NEFSCspatial +# NEFSCspatial package logo [![gitleaks](https://github.com/NEFSC/NEFSC-Spatial/actions/workflows/secretScan.yml/badge.svg)](https://github.com/NEFSC/NEFSC-Spatial/actions/workflows/secretScan.yml) [![gh-pages](https://github.com/NEFSC/NEFSC-Spatial/actions/workflows/pkgdown.yml/badge.svg)](https://github.com/NEFSC/NEFSC-Spatial/actions/workflows/pkgdown.yml) @@ -9,7 +9,7 @@ A repository of spatial data (vectors) in simple features [`sf`](https://r-spati ### Installation ``` -remotes::install_github("NEFSC/NEFSC-Spatial") +pak::pak("NEFSC/NEFSC-Spatial") ``` ### Legal disclaimer diff --git a/man/BTS_Strata.Rd b/man/BTS_Strata.Rd index c292b89..20f27b7 100644 --- a/man/BTS_Strata.Rd +++ b/man/BTS_Strata.Rd @@ -11,7 +11,7 @@ An \code{sf} object: \item{dimension}{XY} \item{Bounding box}{xmin: -79.18422 ymin: 32.50221 xmax: -65.16869 ymax: 44.83202} \item{Geodetic CRS}{NAD 83} -\item{Features}{185 x 9} +\item{Features}{185 x 10} \item{Metadata}{See source} } } diff --git a/man/EcoMon_Strata.Rd b/man/EcoMon_Strata.Rd index bccc6e0..f31b80d 100644 --- a/man/EcoMon_Strata.Rd +++ b/man/EcoMon_Strata.Rd @@ -11,7 +11,7 @@ A data frame/ \code{sf} object \item{Dimension}{XY} \item{Bounding box}{xmin: -75.96791 ymin: 35.14219 xmax: -65.16869 ymax: 44.48558} \item{Geodetic CRS}{NAD83} -\item{Features}{47 x 3} +\item{Features}{47 x 4} \item{Metadata}{See source} } } diff --git a/man/GillnetClosureAreas_20211021.Rd b/man/GillnetClosureAreas_20211021.Rd index ca61c81..8228b4e 100644 --- a/man/GillnetClosureAreas_20211021.Rd +++ b/man/GillnetClosureAreas_20211021.Rd @@ -5,43 +5,14 @@ \alias{GillnetClosureAreas_20211021} \title{Gillnet Closure Areas} \format{ -A data frame/ sf object (2 x 25) +An \code{sf} object \describe{ \item{Geometry type}{POLYGON} \item{Dimension}{XY} \item{Bounding box}{xmin: -70.33333 ymin: 40.33333 xmax: -68.5 ymax: 41.5} \item{Geodetic CRS}{NAD83} -\item{Features}{2 x 25} +\item{Features}{2 x 26} \item{Metadata}{See source} - -\item{GARFO_ID}{A unique identifier used to identify and track this feature; -a new GARFO_ID is generated for each version of a Regulated Area, including -proposed or final versions (i.e. whenever boundaries or attributes are -changed, edited or updated)} -\item{AREANAME}{Official name of the Proposed Area, usually the area name as it will be printed in the CFR.} -\item{COMMNAME}{Most commonly used name. May be identical to AREANAME, an abbreviation of AREANAME, or a different name altogether.} -\item{AREAGROUP}{Specifies if the Proposed Area is part of a group of related areas.} -\item{DESCRIBE}{A brief description of the purpose of the Proposed Area.} -\item{CFRTITLE}{CFR Title citation where the Proposed Area will be legally defined} -\item{CFRPT}{ACFR Part citation where the Proposed Area will be legally defined} -\item{CFRPTTXT}{CFR Part citation header text} -\item{CFRSUB}{CFR Subpart citation where the Proposed Area will be legally defined} -\item{CFRSUBTXT}{CFR Subpart citation header text} -\item{CFRSXN}{CFR Section citation where the Proposed Area will be legally defined} -\item{CFRSXNTXT}{CFR Section citation header text} -\item{CFRPARA}{CFR Paragraph citation where the Proposed Area will be legally defined} -\item{CFRPARATXT}{CFR Paragraph citation header text} -\item{FRCITE}{Federal Register citation of proposed rule containing the Proposed Area spatial definition.} -\item{FRDATE}{Federal Register citation date of proposed rule containing the Proposed Area spatial definition.} -\item{EFFECTDATE}{Date Regulated Area officially became law, or most recent modification. For Proposed Areas, this field will be blank because the area is not yet law.} -\item{SOURCE}{If Proposed Area will be defined in the CFR, this is the citation for the Amendment/Framework/etc. that will establish the area. If the Proposed Area will not be defined in the CFR, this is the alternative source citation that will establish the area.} -\item{RECURST}{Annually recurring date Proposed Area would become active} -\item{RECUREND}{Annually recurring date Proposed Area would become inactive} -\item{GISAUTHOR}{Name of the NOAA staff person who created the GIS feature} -\item{CREATED}{Creation date of the GIS feature} -\item{AREANOTES}{Miscellaneous notes regarding the Proposed Area or feature} -\item{X}{x coordinate of polygon center} -\item{Y}{y coordinate of polygon center} } } \source{ @@ -51,12 +22,16 @@ changed, edited or updated)} data("GillnetClosureAreas_20211021") } \description{ -An sf object containing the Closure areas for Gillnets -Specifically Closed Area 1 and Nantucket Lightship Closure Area +An \code{sf} object containing the closure areas for gillnets. +Specifically Closed Area 1 and Nantucket Lightship Closure Area. } -\section{Contact}{ +\examples{ +\dontrun{ +# Load the dataset +data(GillnetClosureAreas_20211021) -andrew.beet at noaa.gov +# Plot the geometry +plot(sf::st_geometry(GillnetClosureAreas_20211021)) +} } - \keyword{datasets} diff --git a/man/Great_South_Channel_Restricted_Trap_Pot_Area.Rd b/man/Great_South_Channel_Restricted_Trap_Pot_Area.Rd index 9aafe33..bc2e29a 100644 --- a/man/Great_South_Channel_Restricted_Trap_Pot_Area.Rd +++ b/man/Great_South_Channel_Restricted_Trap_Pot_Area.Rd @@ -12,7 +12,7 @@ An \code{sf} object: \item{Dimension}{XY} \item{Bounding box}{xmin: -69.75 ymin: 41 xmax: -68.21667 ymax: 42.16667} \item{Geodetic CRS}{NAD83} -\item{Features}{1 x 25} +\item{Features}{1 x 26} \item{Metadata}{See source} } } @@ -25,4 +25,13 @@ data("Great_South_Channel_Restricted_Trap_Pot_Area") \description{ An \code{sf} object that depicts the boundaries of the Great South Channel Restricted Area in effect from April 1 to June 30 annually for the NOAA Fisheries Service’s Greater Atlantic Regional Fisheries Office (GARFO). } +\examples{ +\dontrun{ +# Load the dataset +data(Great_South_Channel_Restricted_Trap_Pot_Area) + +# Plot the geometry +plot(sf::st_geometry(Great_South_Channel_Restricted_Trap_Pot_Area)) +} +} \keyword{datasets} diff --git a/man/Herring_Management_Areas.Rd b/man/Herring_Management_Areas.Rd index d8dbf9e..75fc664 100644 --- a/man/Herring_Management_Areas.Rd +++ b/man/Herring_Management_Areas.Rd @@ -11,7 +11,7 @@ An \code{sf} object: \item{Dimension}{XY} \item{Bounding box}{xmin: -78.57412 ymin: 33.81288 xmax: -65.69947 ymax: 45.1918} \item{Geodetic CRS}{NAD83} -\item{Features}{4 x 25} +\item{Features}{4 x 26} \item{Metadata}{See source} } } @@ -22,6 +22,15 @@ An \code{sf} object: data("Herring_Management_Areas") } \description{ -An \code{sf} object depicting the boundaries of the Herring Management Areas +An \code{sf} object depicting the boundaries of the Herring Management Areas. +} +\examples{ +\dontrun{ +# Load the dataset +data(Herring_Management_Areas) + +# Plot the geometry +plot(sf::st_geometry(Herring_Management_Areas)) +} } \keyword{datasets} diff --git a/man/LMA1_Restricted_Area_FR.Rd b/man/LMA1_Restricted_Area_FR.Rd index 98a4dbd..a86bb08 100644 --- a/man/LMA1_Restricted_Area_FR.Rd +++ b/man/LMA1_Restricted_Area_FR.Rd @@ -11,7 +11,7 @@ An \code{sf} object: \item{Dimension}{XY} \item{Bounding box}{xmin: -69.6128 ymin: 42.89198 xmax: -68.28787 ymax: 43.73333} \item{Geodetic CRS}{WGS 84} -\item{Features}{1 x 25} +\item{Features}{1 x 26} \item{Metadata}{See source} } } @@ -24,4 +24,13 @@ data("LMA1_Restricted_Area_FR") \description{ An \code{sf} object that depicts the boundaries of the Lobster Management Area One Restricted Area in effect annually from October 1 to January 30 for the NOAA Fisheries Service’s Greater Atlantic Regional Fisheries Office (GARFO). } +\examples{ +\dontrun{ +# Load the dataset +data(LMA1_Restricted_Area_FR) + +# Plot the geometry +plot(sf::st_geometry(LMA1_Restricted_Area_FR)) +} +} \keyword{datasets} diff --git a/man/NAFO_Divisions_2021_line_enclosed.Rd b/man/NAFO_Divisions_2021_line_enclosed.Rd index 3313313..53cf968 100644 --- a/man/NAFO_Divisions_2021_line_enclosed.Rd +++ b/man/NAFO_Divisions_2021_line_enclosed.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data_NAFO_Divsions_2021_line_enclosed.R +% Please edit documentation in R/data_NAFO_Divisions_2021_line_enclosed.R \docType{data} \name{NAFO_Divisions_2021_line_enclosed} \alias{NAFO_Divisions_2021_line_enclosed} @@ -11,7 +11,7 @@ An \code{sf} object: \item{Dimension}{XY} \item{Bounding box}{xmin: -80 ymin: 35 xmax: -42 ymax: 78.16667} \item{Geodetic CRS}{NAD83} -\item{Features}{38 x 5} +\item{Features}{38 x 6} \item{Metadata}{See source} } } @@ -22,6 +22,15 @@ An \code{sf} object: data("NAFO_Divisions_2021_line_enclosed") } \description{ -An \code{sf} object that depicts the boundaries of the NAFO regions +An \code{sf} object that depicts the boundaries of the NAFO regions. +} +\examples{ +\dontrun{ +# Load the dataset +data(NAFO_Divisions_2021_line_enclosed) + +# Plot the geometry +plot(sf::st_geometry(NAFO_Divisions_2021_line_enclosed)) +} } \keyword{datasets} diff --git a/man/NAFO_Divisions_2021_line_not_enclosed.Rd b/man/NAFO_Divisions_2021_line_not_enclosed.Rd index 3c62d69..1b76625 100644 --- a/man/NAFO_Divisions_2021_line_not_enclosed.Rd +++ b/man/NAFO_Divisions_2021_line_not_enclosed.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data_NAFO_Divsions_2021_line_not_enclosed.R +% Please edit documentation in R/data_NAFO_Divisions_2021_line_not_enclosed.R \docType{data} \name{NAFO_Divisions_2021_line_not_enclosed} \alias{NAFO_Divisions_2021_line_not_enclosed} @@ -11,7 +11,7 @@ An \code{sf} object: \item{Dimension}{XY} \item{Bounding box}{xmin: -80 ymin: 35 xmax: -42 ymax: 78.16667} \item{Geodetic CRS}{NAD83} -\item{Features}{42 x 7} +\item{Features}{42 x 8} \item{Metadata}{See source} } } @@ -22,6 +22,15 @@ An \code{sf} object: data("NAFO_Divisions_2021_line_not_enclosed") } \description{ -An \code{sf} object that depicts the boundaries of the NAFO regions +An \code{sf} object that depicts the boundaries of the NAFO regions. +} +\examples{ +\dontrun{ +# Load the dataset +data(NAFO_Divisions_2021_line_not_enclosed) + +# Plot the geometry +plot(sf::st_geometry(NAFO_Divisions_2021_line_not_enclosed)) +} } \keyword{datasets} diff --git a/man/NAFO_Divisions_2021_poly_clipped.Rd b/man/NAFO_Divisions_2021_poly_clipped.Rd index 422ef52..494f9ef 100644 --- a/man/NAFO_Divisions_2021_poly_clipped.Rd +++ b/man/NAFO_Divisions_2021_poly_clipped.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data_NAFO_Divsions_2021_poly_clipped.R +% Please edit documentation in R/data_NAFO_Divisions_2021_poly_clipped.R \docType{data} \name{NAFO_Divisions_2021_poly_clipped} \alias{NAFO_Divisions_2021_poly_clipped} @@ -11,7 +11,7 @@ An \code{sf} object: \item{Dimension}{XY} \item{Bounding box}{xmin: -80 ymin: 35 xmax: -42 ymax: 78.16667} \item{Geodetic CRS}{NAD83} -\item{Features}{39 x 8} +\item{Features}{39 x 9} \item{Metadata}{See source} } } @@ -22,6 +22,15 @@ An \code{sf} object: data("NAFO_Divisions_2021_poly_clipped") } \description{ -An \code{sf} object that depicts the boundaries of the NAFO regions +An \code{sf} object that depicts the boundaries of the NAFO regions. +} +\examples{ +\dontrun{ +# Load the dataset +data(NAFO_Divisions_2021_poly_clipped) + +# Plot the geometry +plot(sf::st_geometry(NAFO_Divisions_2021_poly_clipped)) +} } \keyword{datasets} diff --git a/man/NAFO_Divisions_2021_poly_not_clipped.Rd b/man/NAFO_Divisions_2021_poly_not_clipped.Rd index 39daeeb..55cf44b 100644 --- a/man/NAFO_Divisions_2021_poly_not_clipped.Rd +++ b/man/NAFO_Divisions_2021_poly_not_clipped.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data_NAFO_Divsions_2021_poly_not_clipped.R +% Please edit documentation in R/data_NAFO_Divisions_2021_poly_not_clipped.R \docType{data} \name{NAFO_Divisions_2021_poly_not_clipped} \alias{NAFO_Divisions_2021_poly_not_clipped} @@ -11,7 +11,7 @@ An \code{sf} object: \item{Dimension}{XY} \item{Bounding box}{xmin: -80 ymin: 35 xmax: -42 ymax: 78.16667} \item{Geodetic CRS}{NAD83} -\item{Features}{38 x 8} +\item{Features}{38 x 9} \item{Metadata}{See source} } } @@ -22,6 +22,15 @@ An \code{sf} object: data("NAFO_Divisions_2021_poly_not_clipped") } \description{ -An \code{sf} object that depicts the boundaries of the NAFO regions +An \code{sf} object that depicts the boundaries of the NAFO regions. +} +\examples{ +\dontrun{ +# Load the dataset +data(NAFO_Divisions_2021_poly_not_clipped) + +# Plot the geometry +plot(sf::st_geometry(NAFO_Divisions_2021_poly_not_clipped)) +} } \keyword{datasets} diff --git a/man/NEFSCspatial-package.Rd b/man/NEFSCspatial-package.Rd index 6e184ba..5b6e742 100644 --- a/man/NEFSCspatial-package.Rd +++ b/man/NEFSCspatial-package.Rd @@ -24,8 +24,8 @@ Useful links: Authors: \itemize{ - \item Kimberly Bastille \email{kimberly.bastille@noaa.gov} \item Joshua Hatch \email{joshua.hatch@noaa.gov} + \item Kimberly Bastille \email{kimberly.bastille@noaa.gov} } } diff --git a/man/Neus_atlantis.Rd b/man/Neus_atlantis.Rd index 7d0067e..9436e1c 100644 --- a/man/Neus_atlantis.Rd +++ b/man/Neus_atlantis.Rd @@ -11,7 +11,7 @@ An \code{sf} object: \item{Dimension}{XY} \item{Bounding box}{xmin: -76.45919 ymin: 34.76128 xmax: -63.42171 ymax: 46.11478} \item{Geodetic CRS}{WGS 83} -\item{Features}{30 x 10} +\item{Features}{30 x 11} \item{Metadata}{See source} } } @@ -22,6 +22,15 @@ An \code{sf} object: data("Neus_atlantis") } \description{ -An sf object containing the box level boundaries used in the Northeast Atlantis ecosystem end to end model +An \code{sf} object containing the box level boundaries used in the Northeast Atlantis ecosystem end to end model. +} +\examples{ +\dontrun{ +# Load the dataset +data(Neus_atlantis) + +# Plot the geometry +plot(sf::st_geometry(Neus_atlantis)) +} } \keyword{datasets} diff --git a/man/Scallop_Rotational_Areas_20230411.Rd b/man/Scallop_Rotational_Areas_20230411.Rd index 3ca445c..978d24b 100644 --- a/man/Scallop_Rotational_Areas_20230411.Rd +++ b/man/Scallop_Rotational_Areas_20230411.Rd @@ -5,13 +5,13 @@ \alias{Scallop_Rotational_Areas_20230411} \title{Scallop Restricted Area} \format{ -A data frame / sf object (6 x 25) +An \code{sf} object \describe{ \item{Geometry type}{POLYGON} \item{Dimension}{XY} \item{Bounding box}{xmin: -8274749 ymin: 4602998 xmax: -7333888 ymax: 5087139} \item{Geodetic CRS}{WGS 84 / Pseudo-Mercator} -\item{Features}{6 x 25} +\item{Features}{6 x 26} \item{Metadata}{See source} } } @@ -22,12 +22,16 @@ A data frame / sf object (6 x 25) data("Scallop_Rotational_Areas_20230411") } \description{ -An sf object containing the Scallop Restricted Areas -Specifically Area I, II, Nantucket Lightship North, Nantucket Lightship West, New York Bight, Elephant Trunk +An \code{sf} object containing the Scallop Restricted Areas. +Specifically Area I, II, Nantucket Lightship North, Nantucket Lightship West, New York Bight, and Elephant Trunk. } -\section{Contact}{ +\examples{ +\dontrun{ +# Load the dataset +data(Scallop_Rotational_Areas_20230411) -andrew.beet at noaa.gov +# Plot the geometry +plot(sf::st_geometry(Scallop_Rotational_Areas_20230411)) +} } - \keyword{datasets} diff --git a/man/Shellfish_Strata.Rd b/man/Shellfish_Strata.Rd index 48f686c..dd10681 100644 --- a/man/Shellfish_Strata.Rd +++ b/man/Shellfish_Strata.Rd @@ -11,7 +11,7 @@ A data frame/ \code{sf} object \item{Dimension}{XY} \item{Bounding box}{xmin: -75.95982 ymin: 35.50142 xmax: -65.89944 ymax: 42.16817} \item{Geodetic CRS}{NAD83} -\item{Features}{97 x 9} +\item{Features}{97 x 10} \item{Metadata}{See source} } } diff --git a/man/Shrimp_Strata.Rd b/man/Shrimp_Strata.Rd index 2cadf74..f771a95 100644 --- a/man/Shrimp_Strata.Rd +++ b/man/Shrimp_Strata.Rd @@ -11,7 +11,7 @@ A data frame/ \code{sf} object \item{Dimension}{XY} \item{Bounding box}{xmin: -70.68152 ymin: 41.08476 xmax: -67.99941 ymax: 44.08762} \item{Geodetic CRS}{NAD83} -\item{Features}{12 x 4} +\item{Features}{12 x 5} \item{Metadata}{See source} } } diff --git a/man/Statistical_Areas_2010.Rd b/man/Statistical_Areas_2010.Rd index a1914b8..7c8968e 100644 --- a/man/Statistical_Areas_2010.Rd +++ b/man/Statistical_Areas_2010.Rd @@ -5,13 +5,13 @@ \alias{Statistical_Areas_2010} \title{Greater Atlantic Region Statistical Areas} \format{ -A data frame/ sf object (135 x 1) +An \code{sf} object: \describe{ \item{Geometry type}{MULTIPOLYGON} \item{Dimension}{XY} \item{Bounding box}{xmin: -81.53406 ymin: 24 xmax: -42 ymax: 52.25} \item{Geodetic CRS}{NAD83} -\item{Features}{135 x 1} +\item{Features}{135 x 4} \item{Metadata}{See source} } } @@ -22,7 +22,16 @@ A data frame/ sf object (135 x 1) data("Statistical_Areas_2010") } \description{ -An sf object containing the Greater Atlantic Region Statistical Areas. -Pulled from ftp://ftp.nefsc.noaa.gov/pub/gis/ +An \code{sf} object containing the Greater Atlantic Region Statistical Areas. +Pulled from ftp://ftp.nefsc.noaa.gov/pub/gis/. +} +\examples{ +\dontrun{ +# Load the dataset +data(Statistical_Areas_2010) + +# Plot the geometry +plot(sf::st_geometry(Statistical_Areas_2010)) +} } \keyword{datasets} diff --git a/man/Statistical_Areas_2010_withNames.Rd b/man/Statistical_Areas_2010_withNames.Rd index 76be5c8..c42f835 100644 --- a/man/Statistical_Areas_2010_withNames.Rd +++ b/man/Statistical_Areas_2010_withNames.Rd @@ -5,14 +5,14 @@ \alias{Statistical_Areas_2010_withNames} \title{Greater Atlantic Region Statistical Areas} \format{ -A data frame/ sf object (135 x 6) +A \code{sf} object: \describe{ \item{Geometry type}{MULTIPOLYGON} \item{Dimension}{XY} \item{Bounding box}{xmin: -81.53406 ymin: 24 xmax: -42 ymax: 52.25} \item{Geodetic CRS}{NAD83} \item{Metadata}{See source} -\item{Features}{135 x 1} +\item{Features}{135 x 7} } } \source{ @@ -22,8 +22,16 @@ A data frame/ sf object (135 x 6) data("Statistical_Areas_2010_withNames") } \description{ -An sf object containing the Greater Atlantic Region Statistical Areas. -With name labels -Pulled from ftp://ftp.nefsc.noaa.gov/pub/gis/ +An \code{sf} object containing the Greater Atlantic Region Statistical Areas with name labels. +Pulled from ftp://ftp.nefsc.noaa.gov/pub/gis/. +} +\examples{ +\dontrun{ +# Load the dataset +data(Statistical_Areas_2010_withNames) + +# Plot the geometry +plot(sf::st_geometry(Statistical_Areas_2010_withNames)) +} } \keyword{datasets} diff --git a/man/amapps_grid.Rd b/man/amapps_grid.Rd index acd3b00..b9e5281 100644 --- a/man/amapps_grid.Rd +++ b/man/amapps_grid.Rd @@ -11,7 +11,7 @@ An \code{sf} object: \item{Dimension}{XY} \item{Bounding box}{xmin: -820443.2 ymin: -1234728 xmax: 1579557 ymax: 2045272} \item{Projected CRS}{unnamed} -\item{Features}{78720 x 1} +\item{Features}{78720 x 2} \item{Source}{data-raw/gis/AMAPPS_10km_grid.tif} } } diff --git a/man/epu_sf.Rd b/man/epu_sf.Rd index 9b4323c..a21f88f 100644 --- a/man/epu_sf.Rd +++ b/man/epu_sf.Rd @@ -5,13 +5,13 @@ \alias{epu_sf} \title{Ecological Production Units} \format{ -A data frame/ \code{sf} object +An \code{sf} object \describe{ \item{Geometry type}{MULTIPOLYGON} \item{Dimension}{XY} \item{Bounding box}{xmin: -77 ymin: 35.8327 xmax: -65.66667 ymax: 44.66667} \item{Geodetic CRS}{ +proj=longlat +lat_0=40 +lon_0=-77+x_0=0 +y_0=0 +datum=NAD83 +no_defs +ellps=GRS80 +towgs84=0,0,0} -\item{Features}{4 x 3} +\item{Features}{4 x 4} \item{Metadata}{See source} } } @@ -22,7 +22,16 @@ A data frame/ \code{sf} object data("epu_sf") } \description{ -An sf object containing the Northeast US shelf Ecological Production Units (EPUs). +An \code{sf} object containing spatial data for the Northeast US shelf Ecological Production Units (EPUs). Ecological Production Units (EPUs) delineate regions unique in physiographic, oceanographic and biotic aspects on the Northeast U.S. Continental Shelf, representing an area of approximately 264,000 km within the 200 m isobath. There are four EPUs on the Shelf, including the Mid-Atlantic Bight (MAB), Georges Bank (GB), Gulf of Maine (GOM), and Scotian Shelf (SS). The Scotian Shelf lies outside the management domain of US Fishery Management Councils and is generally not considered in State of the Ecosystem Reports. } -\keyword{datasets} +\examples{ +\dontrun{ +# Load the dataset +data(epu_sf) + +# Plot the geometry +plot(sf::st_geometry(epu_sf)) +} +} +\keyword{{datasets}} diff --git a/man/final_mass_inshore_stat.Rd b/man/final_mass_inshore_stat.Rd index 45f8cfa..677db61 100644 --- a/man/final_mass_inshore_stat.Rd +++ b/man/final_mass_inshore_stat.Rd @@ -11,7 +11,7 @@ An \code{sf} object: \item{Dimension}{XY} \item{Bounding box}{xmin: -71.12554 ymin: 41.18887 xmax: -69.86013 ymax: 42.87647} \item{Geodetic CRS}{NAD83} -\item{Features}{14 x 4} +\item{Features}{14 x 5} \item{Metadata}{See source} } } @@ -24,4 +24,13 @@ data("final_mass_inshore_stat") \description{ An \code{sf} object containing the boundaries of the Massachusetts Inshore statistical areas. } +\examples{ +\dontrun{ +# Load the dataset +data(final_mass_inshore_stat) + +# Plot the geometry +plot(sf::st_geometry(final_mass_inshore_stat)) +} +} \keyword{datasets} diff --git a/man/mass_inshore_strata.Rd b/man/mass_inshore_strata.Rd index f868a14..9e663b7 100644 --- a/man/mass_inshore_strata.Rd +++ b/man/mass_inshore_strata.Rd @@ -11,13 +11,13 @@ An \code{sf} object: \item{Dimension}{XY} \item{Bounding box}{xmin: 231326.1 ymin: 772098.2 xmax: 336448.2 ymax: 958709} \item{Projected CRS}{NAD83 / Massachusetts Mainland} -\item{Features}{42 x 12} +\item{Features}{42 x 8} \item{Metadata}{See source} } } \source{ {https://www.mass.gov/info-details/review-trawl-survey-updates. Division of Marine Fisheries - New Bedford Office. For more info contact the -\href{https://www.mass.gov/info-details/dmf-staff-directory#fisheries-biology-recreational-fishing-survey-and-assessment}{Resource Assessment Project Leader} } +\href{https://www.mass.gov/info-details/dmf-staff-directory#fisheries-biology-recreational-fishing-survey-and-assessment}{Resource Assessment Project Leader}. } } \usage{ data('mass_inshore_strata') diff --git a/pkgdown/_pkgdown.yml b/pkgdown/_pkgdown.yml index 1a1649e..0a008df 100644 --- a/pkgdown/_pkgdown.yml +++ b/pkgdown/_pkgdown.yml @@ -54,19 +54,19 @@ reference: - title: Closed Areas desc: Areas in which fishing is restricted - contents: - - GillnetClosureAreas_20211021 - - LMA1_Restricted_Area_FR - - Great_South_Channel_Restricted_Trap_Pot_Area - - Scallop_Rotational_Areas_20230411 + - "GillnetClosureAreas_20211021" + - "LMA1_Restricted_Area_FR" + - "Great_South_Channel_Restricted_Trap_Pot_Area" + - "Scallop_Rotational_Areas_20230411" - title: Protected Species - contents: amapps_grid - title: Survey Strata desc: Areas in which survey sampling is reported - contents: - - BTS_Strata - - EcoMon_Strata - - Shellfish_Strata - - Shrimp_Strata + - "BTS_Strata" + - "EcoMon_Strata" + - "Shellfish_Strata" + - "Shrimp_Strata" - contains("strata") - ends_with("stations") - ends_with("deployments") @@ -74,7 +74,7 @@ reference: - title: Models desc: Areas defining model boundaries - contents: - - Neus_atlantis + - "Neus_atlantis" authors: diff --git a/vignettes/NEFSCspatial.Rmd b/vignettes/NEFSCspatial.Rmd index 7e9ee37..29c30d9 100644 --- a/vignettes/NEFSCspatial.Rmd +++ b/vignettes/NEFSCspatial.Rmd @@ -19,14 +19,24 @@ library(sf) library(NEFSCspatial) ``` -The spatial data bundled in this package are in `sf` format. For the data in `sf` format, you can view the fields simply by typing the name of the data set +The spatial data bundled in this package are in `sf` format. For the data in `sf` format, you can view the fields simply by typing the name of the data set. For example, lets look at the [`mass_inshore_strata`](../reference/mass_inshore_strata.html) data set ```{r data_sf} -NEFSCspatial::Shellfish_Strata +NEFSCspatial::mass_inshore_strata ``` -To visualize the data simply use the plot function +## The footprint -```{r plot_sf, fig.alt = "Plot of NEFSCspatial Shellfish Strata"} -plot(NEFSCspatial::Shellfish_Strata) +```{r plot_geom, fig.alt="Footprint"} +plot(sf::st_geometry(NEFSCspatial::mass_inshore_strata)) ``` + +## Footprint by fields + +To visualize the fields in data simply use the plot function + +```{r plot_sf, fig.alt = "Plot of NEFSCspatial massacusetts inshore survey strata"} +plot(NEFSCspatial::mass_inshore_strata) +``` + +