knitr::opts_chunk$set(echo = TRUE)

Here is a link to our GitHub repository

Here is a link to our pkgdown website

Package installation

devtools::install_github("WeiquanLuo/lab3team12")

Load package

library(lab3team12)

Functions

team_5

The team_5 function was written by Kellie. It was created based on the solution for lab2 by group 5.

The function has two input values.

team_10

The team_10 function was written by Hao. It was created based on the solution for lab2 by group 10.

The function has two input values.

team_11

The team_11 function was written by Weiquan. It was created based on the solution for lab2 by group 11.

The function has two input values.

Example

Example shape file downloaded from gdam.

file=system.file("extdata", "gadm36_AUS_1.shp", package = "lab3team12")
tmp=team_5(file)

# or
tmp=team_10(file)

# or 
tmp=sf::read_sf(file)
tmp=team_11(tmp)

# plot 
library(ggplot2)
ggplot(tmp, aes(x=long,y=lat,group=group))+geom_polygon()


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