Package: PBSmapping 2.73.8

Rowan Haigh

PBSmapping: Mapping Fisheries Data and Spatial Analysis Tools

This software has evolved from fisheries research conducted at the Pacific Biological Station (PBS) in 'Nanaimo', British Columbia, Canada. It extends the R language to include two-dimensional plotting features similar to those commonly available in a Geographic Information System (GIS). Embedded C code speeds algorithms from computational geometry, such as finding polygons that contain specified point events or converting between longitude-latitude and Universal Transverse Mercator (UTM) coordinates. Additionally, we include 'C++' code developed by Angus Johnson for the 'Clipper' library, data for a global shoreline, and other data sets in the public domain. Under the user's R library directory '.libPaths()', specifically in './PBSmapping/doc', a complete user's guide is offered and should be consulted to use package functions effectively.

Authors:Jon T. Schnute [aut], Nicholas Boers [aut], Rowan Haigh [aut, cre], Alex Couture-Beil [ctb], Denis Chabot [ctb], Chris Grandin [ctb], Alan Murta [ctb], Angus Johnson [ctb], Paul Wessel [ctb], Franklin Antonio [ctb], Nicholas J. Lewin-Koh [ctb], Roger Bivand [ctb], Sean Anderson [ctb]

PBSmapping_2.73.8.tar.gz
PBSmapping_2.73.8.zip(r-4.5)PBSmapping_2.73.8.zip(r-4.4)PBSmapping_2.73.8.zip(r-4.3)
PBSmapping_2.73.8.tgz(r-4.4-x86_64)PBSmapping_2.73.8.tgz(r-4.4-arm64)PBSmapping_2.73.8.tgz(r-4.3-x86_64)PBSmapping_2.73.8.tgz(r-4.3-arm64)
PBSmapping_2.73.8.tar.gz(r-4.5-noble)PBSmapping_2.73.8.tar.gz(r-4.4-noble)
PBSmapping_2.73.8.tgz(r-4.4-emscripten)PBSmapping_2.73.8.tgz(r-4.3-emscripten)
PBSmapping.pdf |PBSmapping.html
PBSmapping/json (API)

# Install 'PBSmapping' in R:
install.packages('PBSmapping', repos = c('https://pbs-software.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/pbs-software/pbs-mapping/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • bcBathymetry - Data: Bathymetry Spanning BC Coast
  • nepacLL - Data: Shorelines of the NE Pacific Ocean and of the World
  • nepacLLhigh - Data: Shorelines of the NE Pacific Ocean and of the World
  • pythagoras - Data: Pythagoras' Theorem Diagram PolySet
  • surveyData - Data: Tow Information from Pacific Ocean Perch Survey
  • towData - Data: Tow Information from Longspine Thornyhead Survey
  • towTracks - Data: Tow Track Polylines from Longspine Thornyhead Survey
  • worldLL - Data: Shorelines of the NE Pacific Ocean and of the World
  • worldLLhigh - Data: Shorelines of the NE Pacific Ocean and of the World

On CRAN:

120 exports 11 stars 3.74 score 0 dependencies 9 dependents 11 mentions 548 scripts 1.8k downloads

Last updated 13 hours agofrom:1842f49f87. Checks:OK: 1 WARNING: 8. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 17 2024
R-4.5-win-x86_64WARNINGSep 17 2024
R-4.5-linux-x86_64WARNINGSep 17 2024
R-4.4-win-x86_64WARNINGSep 17 2024
R-4.4-mac-x86_64WARNINGSep 17 2024
R-4.4-mac-aarch64WARNINGSep 17 2024
R-4.3-win-x86_64WARNINGSep 17 2024
R-4.3-mac-x86_64WARNINGSep 17 2024
R-4.3-mac-aarch64WARNINGSep 17 2024

Exports:.addAxis.addAxis2.addBubblesLegend.addCorners.addFeature.addLabels.addProps.calcDist.calcOrientation.checkClipLimits.checkProjection.checkRDeps.clip.closestPoint.createFastIDdig.createGridIDs.createIDs.expandEdges.fixGSHHSWorld.getBasename.getGridPars.initPlotRegion.insertNAs.is.in.mat2df.PBSfig01.PBSfig02.PBSfig03.PBSfig04.PBSfig05.PBSfig06.PBSfig07.PBSfig08.PBSfig09.PBSfig10.PBSfigs.PBSmapEnv.plotMaps.preparePolyProps.rollupPolys.validateData.validateEventData.validateLocationSet.validatePolyData.validatePolyProps.validatePolySet.validateXYDataaddBubblesaddCompassaddLabelsaddLinesaddPointsaddPolysaddStipplesappendPolysas.EventDataas.LocationSetas.PolyDataas.PolySetcalcAreacalcCentroidcalcConvexHullcalcGCdistcalcLengthcalcMidRangecalcSummarycalcVoronoiclipLinesclipPolysclosePolyscombineEventscombinePolysconvCPconvDPconvLPconvULdividePolysextractPolyDatafindCellsfindPolysfixBoundfixPOSimportEventsimportGSHHSimportLocsimportPolysis.EventDatais.LocationSetis.PolyDatais.PolySetisConvexisIntersectingjoinPolyslocateEventslocatePolysmakeGridmakePropsmakeTopographyPBSprintplaceHolesplotLinesplotMapplotPointsplotPolysprint.EventDataprint.LocationSetprint.PolyDataprint.PolySetprint.summary.PBSrefocusWorldRGB2RYBrotateEventsrotatePolysRYB2RGBsummary.EventDatasummary.LocationSetsummary.PolyDatasummary.PolySetthickenPolysthinPolys

Dependencies:

Introduction to PBSmapping

Rendered fromPBSmappingIntro.Rnwusingutils::Sweaveon Sep 17 2024.

Last update: 2024-09-17
Started: 2013-05-01

Readme and manuals

Help Manual

Help pageTopics
Add Bubbles to MapsaddBubbles
Add Compass Rose to MapaddCompass
Add Labels to an Existing PlotaddLabels
Add a PolySet to an Existing Plot as PolylinesaddLines
Add EventData/PolyData to an Existing Plot as PointsaddPoints
Add Polygon PolySet to Existing Plot.insertNAs .preparePolyProps .rollupPolys addPolys
Add Stipples to an Existing PlotaddStipples
Append a Two-Column Matrix to a PolySetappendPolys
Data: Bathymetry Spanning BC CoastbcBathymetry
Calculate the Areas of PolygonscalcArea
Calculate the Centroids of PolygonscalcCentroid
Calculate Convex Hull for a Set of Points.closestPoint calcConvexHull
Calculate Great-Circle DistancecalcGCdist
Calculate the Length of PolylinescalcLength
Calculate the Midpoint of the X/Y Ranges of PolygonscalcMidRange
Apply Functions to Polygons in a PolySetcalcSummary
Calculate Voronoi Tesselation.expandEdges calcVoronoi
Clip a PolySet as PolylinesclipLines
Clip a PolySet as Polygons or Polylines.clip clipLines clipPolys
Close a PolySetclosePolys
Combine Measurements of EventscombineEvents
Combine Several Polygons into a Single PolygoncombinePolys
Convert Contour Lines into a PolySetconvCP
Convert EventData/PolyData into a PolySetconvDP
Convert Polylines into a PolygonconvLP
Convert Coordinates between UTM and Lon/LatconvUL
Divide a Single Polygon into Several PolygonsdividePolys
Add Items to Plots.addAxis .addAxis2 .addBubblesLegend .addCorners .addFeature .addLabels .addProps
Calculate Things.calcDist .calcOrientation
Check Stuff.checkClipLimits .checkProjection .checkRDeps
Fix Things.fixGSHHSWorld
Get Stuff.getBasename .getGridPars
Are Points in Polygons?.is.in
Convert Matrix to Data Frame.mat2df
Run PBSmapping Example Figures.PBSfig01 .PBSfig02 .PBSfig03 .PBSfig04 .PBSfig05 .PBSfig06 .PBSfig07 .PBSfig08 .PBSfig09 .PBSfig10 .PBSfigs
PBSmapping Environment.PBSmapEnv
Validate PBSmapping Data Structures.validateData .validateEventData .validateLocationSet .validatePolyData .validatePolyProps .validatePolySet .validateXYData
EventData Objectsas.EventData EventData is.EventData
Extract PolyData from a PolySetextractPolyData
Find Grid Cells that Contain EventsfindCells
Find Polygons that Contain EventsfindPolys
Fix the Boundary Points of a PolySetfixBound
Fix the POS Column of a PolySetfixPOS
Import EventData from a Text FileimportEvents
Import Data from a GSHHS DatabaseimportGSHHS
Import LocationSet from Text FileimportLocs
Import PolySet from Text FileimportPolys
Determine Whether Polygons are ConvexisConvex
Determine Whether Polygons are Self-IntersectingisIntersecting
Join One or Two PolySets using a Logic OperationjoinPolys
Locate Events on the Current PlotlocateEvents
Locate Polygons on the Current PlotlocatePolys
LocationSet Objectsas.LocationSet is.LocationSet LocationSet
Make a Grid of PolygonsmakeGrid
Make Polygon PropertiesmakeProps
Make Topography Data from Online SourcemakeTopography
Data: Shorelines of the NE Pacific Ocean and of the WorldnepacLL nepacLLhigh worldLL worldLLhigh
PBS Mapping: Draw Maps and Implement Other GIS ProceduresPBSmapping-package PBSmapping
Specify Whether to Print SummariesPBSprint
Place Holes Under SolidsplaceHoles
Plot a PolySet as PolylinesplotLines
Plot a PolySet as a Map.initPlotRegion .plotMaps plotMap
Plot EventData/PolyData as PointsplotPoints
Plot a PolySet as PolygonsplotPolys
PolyData Objectsas.PolyData is.PolyData PolyData
PolySet Objectsas.PolySet is.PolySet PolySet
Print PBS Mapping Objectsprint.EventData print.LocationSet print.PolyData print.PolySet print.summary.PBS
Data: Pythagoras' Theorem Diagram PolySetpythagoras
Refocus the 'worldLL'/'worldLLhigh' Data SetsrefocusWorld
Convert RGB to RYB and RYB to RGBRGB2RYB RYB2RGB
Rotate Polygons and EventsrotateEvents rotatePolys
Summarize PBS Mapping Objectssummary.EventData summary.LocationSet summary.PolyData summary.PolySet
Data: Tow Information from Pacific Ocean Perch SurveysurveyData
Thicken a PolySet of PolygonsthickenPolys
Thin a PolySet of PolygonsthinPolys
Data: Tow Information from Longspine Thornyhead SurveytowData
Data: Tow Track Polylines from Longspine Thornyhead SurveytowTracks