triangulate: Add triangle primitives

Description Usage Arguments Details Examples

View source: R/trianglePrimitives.R

Description

Add triangle primitives

Usage

1

Arguments

x

gris object

...

passed on to triangulate, as arguments after the input pslg

Details

only a has been extensively explored, this is the minimum triangle area in the units of the coordinates

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
library(gris)
library(maptools)
data(wrld_simpl)
gall <- gris(wrld_simpl)
g <- gall[gall$o$NAME %in% c("Australia", "New Zealand"), ]
g$v <- g$v %>% mutate(x = ifelse(x < 0, x + 360, x))

gT <- gris::triangulate(g)
plot(g)
plot(gT, triangles = TRUE, add = TRUE)

## End(Not run)

r-gris/gris documentation built on May 14, 2019, 12:57 a.m.