Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/riatelab/linemap

Create maps made of (ridge) lines
https://github.com/riatelab/linemap

cp1919 map r spatial

Last synced: 2 days ago
JSON representation

Create maps made of (ridge) lines

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
fig.width = 8,
fig.height = 8,
fig.show = "hold"

)
```

# linemap: Create maps made of Lines
[![R-CMD-check](https://github.com/riatelab/linemap/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/riatelab/linemap/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/riatelab/linemap/branch/master/graph/badge.svg)](https://app.codecov.io/gh/riatelab/linemap?branch=master)
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version-ago/linemap)](https://cran.r-project.org/package=linemap)

`linemap()` displays a map made of lines using a raster or gridded data.

## Installation

You can install `linemap` from CRAN with:

``` r
install.packages("linemap")
```

## Example

The package contains one function: `linemap()`.

```{r example}
library(linemap)
r <- terra::rast(system.file("tif/elevation.tif", package = "linemap"))
opar <- par(mar = c(0,0,0,0), bg = "grey10")
linemap(r)
par(opar)
```

## Inspiration
[Unknown Pleasures](https://en.wikipedia.org/wiki/Unknown_Pleasures) (*Joy Division*)
[Population Lines: How and Why I Created It](https://jcheshire.com/featured-maps/population-lines-how-and-why-i-created-it/) (*James Cheshire*)
[GeospatialLineGraphs](https://github.com/Brideau/GeospatialLineGraphs) (*Ryan Brideau*)

## Alternative

* ggplot2 + [ggridges](https://CRAN.R-project.org/package=ggridges)