Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/riatelab/linemap
- Owner: riatelab
- Created: 2017-06-22T14:43:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-28T14:49:33.000Z (12 months ago)
- Last Synced: 2024-05-22T08:11:01.240Z (6 months ago)
- Topics: cp1919, map, r, spatial
- Language: R
- Homepage:
- Size: 5.06 MB
- Stars: 113
- Watchers: 6
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- Citation: CITATION.cff
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)