Package sfdct. August 29, 2017

Similar documents
Package RTriangle. January 31, 2018

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package transformr. December 9, 2018

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package rbgm. May 18, 2018

Package fastdummies. January 8, 2018

Package geoops. March 19, 2018

Package messaging. May 27, 2018

Package qualmap. R topics documented: September 12, Type Package

Package smoothr. April 4, 2018

Package tidytransit. March 4, 2019

Package bisect. April 16, 2018

Package ECctmc. May 1, 2018

Package nngeo. September 29, 2018

Package knitrprogressbar

Package SEMrushR. November 3, 2018

Package jpmesh. December 4, 2017

Package validara. October 19, 2017

Package rsppfp. November 20, 2018

Package semver. January 6, 2017

Package snakecase. R topics documented: March 25, Version Date Title Convert Strings into any Case

Package calpassapi. August 25, 2018

Package splithalf. March 17, 2018

Package kdtools. April 26, 2018

Package docxtools. July 6, 2018

Package geogrid. August 19, 2018

Package canvasxpress

Package censusr. R topics documented: June 14, Type Package Title Collect Data from the Census API Version 0.0.

Package ggimage. R topics documented: November 1, Title Use Image in 'ggplot2' Version 0.0.7

Package angstroms. May 1, 2017

Package repec. August 31, 2018

Package vinereg. August 10, 2018

Package areal. December 31, 2018

Package essurvey. August 23, 2018

Package goodpractice

Package WordR. September 7, 2017

Package ggimage. R topics documented: December 5, Title Use Image in 'ggplot2' Version 0.1.0

Package projector. February 27, 2018

Package redlistr. May 11, 2018

Package cancensus. February 4, 2018

Package githubinstall

Package pdfsearch. July 10, 2018

Package dkanr. July 12, 2018

Package robotstxt. November 12, 2017

Package tiler. June 9, 2018

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package widyr. August 14, 2017

Package facerec. May 14, 2018

Package osmdata. February 22, 2018

Package fusionclust. September 19, 2017

Package geojson. November 8, 2017

Package stapler. November 27, 2017

Package statsdk. September 30, 2017

Package rcmdcheck. R topics documented: November 10, 2018

Package spark. July 21, 2017

Package mapsapi. March 12, 2018

Package datapasta. January 24, 2018

Package postgistools

Package opencage. January 16, 2018

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package wrswor. R topics documented: February 2, Type Package

Package mapedit. R topics documented: March 2, Title Interactive Editing of Spatial Data in R

Package sessioninfo. June 21, 2017

Package readxl. April 18, 2017

Package triebeard. August 29, 2016

Package packcircles. April 28, 2018

Package rcv. August 11, 2017

Package gtrendsr. October 19, 2017

Package guardianapi. February 3, 2019

Package sfc. August 29, 2016

Package textrecipes. December 18, 2018

Package pkgbuild. October 16, 2018

Package tibble. August 22, 2017

Package styler. December 11, Title Non-Invasive Pretty Printing of R Code Version 1.0.0

Package loggit. April 9, 2018

Package censusapi. August 19, 2018

Package autocogs. September 22, Title Automatic Cognostic Summaries Version 0.1.1

Package vip. June 15, 2018

Package dbx. July 5, 2018

Package internetarchive

Package editdata. October 7, 2017

Package colf. October 9, 2017

Package gifti. February 1, 2018

Package TrafficBDE. March 1, 2018

Package embed. November 19, 2018

Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0

Package rprojroot. January 3, Title Finding Files in Project Subdirectories Version 1.3-2

Package pmatch. October 19, 2018

Package datasets.load

Package crossword.r. January 19, 2018

Package rollply. R topics documented: August 29, Title Moving-Window Add-on for 'plyr' Version 0.5.0

Package spelling. December 18, 2017

Package jdx. R topics documented: January 9, Type Package Title 'Java' Data Exchange for 'R' and 'rjava'

Package ecoseries. R topics documented: September 27, 2017

Package glue. March 12, 2019

Package data.world. April 5, 2018

Package gtrendsr. August 4, 2018

Package postal. July 27, 2018

Package keyholder. May 19, 2018

Package fingertipsr. May 25, Type Package Version Title Fingertips Data for Public Health

Transcription:

Package sfdct August 29, 2017 Title Constrained Triangulation for Simple Features Version 0.0.4 Build a constrained 'Delaunay' triangulation from simple features objects, applying constraints based on input line segments, and triangle properties including maximum area, minimum internal angle. Depends R (>= 3.3.2) License CC BY-NC-SA 4.0 License_restricts_use yes Encoding UTF-8 LazyData true Imports dplyr, methods, RTriangle, sf, sp, tibble RoxygenNote 6.0.1 Suggests testthat, covr, knitr, maps, rmarkdown, viridislite VignetteBuilder knitr URL https://github.com/r-gris/sfdct BugReports https://github.com/r-gris/sfdct/issues NeedsCompilation no Author Michael D. Sumner [aut, cre] Maintainer Michael D. Sumner <mdsumner@gmail.com> Repository CRAN Date/Publication 2017-08-29 13:51:36 UTC R topics documented: antarctica.......................................... 2 ct_triangulate........................................ 2 lakesuperior......................................... 4 map_world......................................... 4 sfdct............................................. 4 Index 5 1

2 ct_triangulate antarctica Antarctica, and not Antarctica. See data-raw for original source. Examples library(sf) plot(antarctica, col = rainbow(nrow(antarctica), alpha = 0.4)) ct_triangulate Constrained Delaunay Triangulation Triangulate simple features including the input edges as constraints, rather than being bounded to the convex hull. Usage ct_triangulate(x,...) ## S3 method for class 'POINT' ## S3 method for class 'MULTIPOINT' ## S3 method for class 'GEOMETRYCOLLECTION' ## S3 method for class 'sfg' ## S3 method for class 'sfc' ct_triangulate(x,...) ## S3 method for class 'sf'

ct_triangulate 3 Arguments x simple feature geometry or data frame... arguments for triangulate, see details trim Details Value Note drop triangles that fall "outside" i.e. "holes" and non-convex regions, TRUE by default This is not a Delaunay Triangulation by default, but is "mostly-delaunay". Use the D = TRUE option, passed to the underlying function in RTriangle to ensure the criterion is met, as well as edge constraints. All POLYGON, LINESTRING, MULTIPOLYGON, and MULTILINESTRING inputs (including those in GEOMETRYCOLLECTION) are broken down into line segments that are included in the mesh. Holes are removed by default, but can be retained with the trim argument. The triangles are collected as POLYGONs within a GEOMETRYCOLLECTION, and in the case of an sf object it s returned within the original input data frame. There s no way in this package to retain the set of shared vertices, or the segment or the triangle indices. It is a fundamental feature of the standard, that this information is not represented. Further arguments may be passed down to the underlying triangulation function triangulate. Note that planar coordinates are assumed, no matter what projection the input is in. There s no sensible meaning to a value for a in units m^2 for a layer that is in longitude/latitude, for those use "area in square degrees", the straightforward meaning in planar coordinates. These arguments are, from the documentation of that function: a a Maximum triangle area. If specified, triangles cannot be larger than this area. q Minimum triangle angle in degrees. Y If TRUE prohibits the insertion of Steiner points on the mesh boundary. j If TRUE jettisons vertices that are not part of the final triangulation from the output. D If TRUE produce a conforming Delaunay triangulation. This ensures that all the triangles in the mesh are truly Delaunay, and not merely constrained Delaunay. This option invokes Ruppert s original algorithm, which splits every subsegment whose diametral circle is encroached. It usually increases the number of vertices and triangles. S Specifies the maximum number of added Steiner points. V Verbosity level. Specify higher values for more detailed information about what the Triangle library is doing. Q If TRUE suppresses all explanation of what the Triangle library is doing, unless an error occurs. simple feature column st_sfc or data frame st_sfc GEOMETRYCOLLECTION as input is not yet supported.

4 sfdct Examples library(sf) nc <- read_sf(system.file("shape/nc.shp", package="sf"), quiet = TRUE) nc_triangles <- ct_triangulate(nc[, c("name", "geometry")]) plot(nc[, "NAME"]) plot(nc_triangles, add = TRUE, col = NA, lty = "dotted") idx <- c(4, 5, 6, 7, 8, 20, 21) op <- par(mfrow = c(2, 1)) if (packageversion("sf") <= '0.2.8'){ nc <- st_transform(nc, "+proj=eqc +ellps=wgs84") } plot(st_triangulate(nc[idx, c("name", "geometry")]), col = "grey") plot(ct_triangulate(nc[idx, c("name", "geometry")])) lakesuperior Lake Superior polygons. See data-raw for original source. map_world The world database from the maps package. Data is in sf form. See data-raw for original source. sfdct sfdct. sfdct.

Index antarctica, 2 ct_triangulate, 2 lakesuperior, 4 map_world, 4 sfdct, 4 sfdct-package (sfdct), 4 st_sfc, 3 triangulate, 3 5