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 MFRI spatial objects into convenient functions.

Installation

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

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

Example

Some basic example illuminating features:

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

Get some object from LMÍ geoserver:

iceland <- gl_lmi_strandlina()
glines <- gl_lhg_grunnlina()
miles12 <- gl_lhg_landhelgi()

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 Nov. 11, 2024, 2:26 p.m.