knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%", warning = FALSE, message = FALSE )
The goal of gisland is to wrap some often used spatial related scripts into convenient functions.
You can install the development version of gisland from GitHub with:
# install.packages("devtools") devtools::install_github("einarhjorleifsson/gisland")
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.