knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%",
  warning = FALSE,
  message = FALSE
)

gisland

The goal of gisland is to wrap some often used spatial related scripts into convenient functions.

Installation

You can install the development version of gisland from GitHub with:

# install.packages("devtools")
devtools::install_github("einarhjorleifsson/gisland")

Example

Some basic example illuminating features:

library(sf)
library(tidyverse)
library(gisland)

Get some object from LMÍ geoserver:

iceland <- read_strandlinur()
glines <- read_grunnlinur()
miles12 <- read_12miles()

What do we have?:

ggplot() +
  geom_sf(data = iceland) +
  geom_sf(data = glines, colour = "red") +
  geom_sf(data = miles12, colour = "blue")

Could also do:

library(mapview)
mapview(glines) + miles12


einarhjorleifsson/gisland documentation built on Feb. 2, 2024, 11:21 p.m.