team_10: Converts the geometry section of a shape file to...

Description Usage Arguments Details Value Author(s) Examples

View source: R/team_10.R

Description

Converts the geometry section of a shape file to latitude-longitude format

Usage

1
team_10(file, tolerance = 0.1)

Arguments

file

File path of a geometry file, extension should be .shp.

tolerance

Tolerance level for thinning shape file. A percentage between 0 and 1.

Details

The variables included in the dataframe that is returned from team_10 are as follows.

Value

A data frame object

Author(s)

algorithm by STAT585 Lab2 team10, package function by Hao

Examples

1
2
3
4
5
gdat_path=system.file("extdata", "gadm36_AUS_1.shp", package = "lab3team12")
tmp=team_10(gdat_path,0.1)
library(ggplot2)
library(dplyr)
tmp %>% ggplot(aes(x=long,y=lat,group=group))+geom_polygon()

WeiquanLuo/lab3team12 documentation built on May 17, 2019, 8:20 p.m.