{"id":13689606,"url":"https://github.com/marcosci/layer","last_synced_at":"2025-04-13T07:50:50.554Z","repository":{"id":43379888,"uuid":"438250144","full_name":"marcosci/layer","owner":"marcosci","description":"Create stacked tilted maps","archived":false,"fork":false,"pushed_at":"2025-02-02T10:01:13.000Z","size":15346,"stargazers_count":125,"open_issues_count":3,"forks_count":9,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-04T05:07:34.946Z","etag":null,"topics":["ggplot2","rstats","spatial-visualizations"],"latest_commit_sha":null,"homepage":"https://marcosci.github.io/layer/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcosci.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-14T12:47:07.000Z","updated_at":"2025-03-22T08:13:45.000Z","dependencies_parsed_at":"2025-02-16T06:01:10.740Z","dependency_job_id":null,"html_url":"https://github.com/marcosci/layer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosci%2Flayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosci%2Flayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosci%2Flayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosci%2Flayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcosci","download_url":"https://codeload.github.com/marcosci/layer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681494,"owners_count":21144700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ggplot2","rstats","spatial-visualizations"],"created_at":"2024-08-02T15:01:55.228Z","updated_at":"2025-04-13T07:50:50.503Z","avatar_url":"https://github.com/marcosci.png","language":"R","funding_links":[],"categories":["R","Spatial"],"sub_categories":[],"readme":"\n\n\u003c!-- README.md is generated from README.qmd. Please edit that file --\u003e\n\n# layer \u003ca\u003e\u003cimg src='man/figures/logo.svg' align=\"right\" height=210 width=182/\u003e\u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n\n[![Project Status:\nActive](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)\n\u003ca href=\"https://lifecycle.r-lib.org/articles/stages.html#stable\"\ntarget=\"_blank\"\u003e\u003cimg\nsrc=\"https://img.shields.io/badge/lifecycle-stable-brightgreen.svg\"\nalt=\"Lifecycle: stable\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://CRAN.R-project.org/package=layer\" target=\"_blank\"\u003e\u003cimg\nsrc=\"https://www.r-pkg.org/badges/version/layer\"\nalt=\"CRAN status\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://CRAN.R-project.org/package=layer\" target=\"_blank\"\u003e\u003cimg\nsrc=\"https://cranlogs.r-pkg.org/badges/grand-total/layer?color=blue\"\nalt=\"CRAN/METACRAN Total downloads\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://CRAN.R-project.org/package=layer\" target=\"_blank\"\u003e\u003cimg\nsrc=\"https://cranlogs.r-pkg.org/badges/layer?color=blue\"\nalt=\"CRAN/METACRAN Downloads per month\" /\u003e\u003c/a\u003e\n[![R-CMD-check](https://github.com/marcosci/layer/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/marcosci/layer/actions/workflows/R-CMD-check.yaml)\n\n[![DOI](https://zenodo.org/badge/DOI/10.32614/CRAN.package.layer.svg)](https://doi.org/10.32614/CRAN.package.layer)\n\n\u003c!-- badges: end --\u003e\n\nThe goal of `layer` is to simplify the whole process of creating stacked\ntilted maps, that are often used in scientific publications to show\ndifferent environmental layers for a geographical region. Tilting maps\nand layering them allows to easily draw visual correlations between\nthese environmental layers.\n\nSomething in the line of:\n\n\u003cimg src=\"man/figures/example.jpg\"\ndata-fig-alt=\"Example of a stacked tilted map by Cédric Scherer and Marco Sciaini\" /\u003e\n\n## Installation\n\nYou can install the development version of layer from\n[GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"remotes\")\nremotes::install_github(\"marcosci/layer\")\n```\n\n## Example\n\nThis is a basic example which shows you how to solve a common problem:\n\n``` r\nlibrary(layer)\n\ntilt_landscape_1 \u003c- tilt_map(landscape_1)\ntilt_landscape_2 \u003c- tilt_map(landscape_2, x_shift = 25, y_shift = 50)\ntilt_landscape_3 \u003c- tilt_map(landscape_3, x_shift = 50, y_shift = 100)\ntilt_landscape_points \u003c- tilt_map(landscape_points, x_shift = 75, y_shift = 150)\n\nmap_list \u003c- list(tilt_landscape_1, tilt_landscape_2, tilt_landscape_3, tilt_landscape_points)\n\nplot_tiltedmaps(map_list,\n                layer = c(\"value\", \"value\", \"value\", NA),\n                palette = c(\"bilbao\", \"mako\", \"rocket\", NA),\n                color = \"grey40\")\n```\n\n\u003cimg src=\"man/figures/README-example-1.png\"\ndata-fig-alt=\"Basic example of a stacked tilted map\" width=\"672\" /\u003e\n\n### More advanced example\n\nSome more realistic looking data (DEM, drought, precipitation, and\nwildfires for continental USA):\n\n``` r\ntilt_landscape_1 \u003c- tilt_map(dem_usa, y_tilt = 3)\ntilt_landscape_2 \u003c- tilt_map(drought_usa, y_tilt = 3, x_shift = 15, y_shift = 25)\ntilt_landscape_3 \u003c- tilt_map(prec_usa, y_tilt = 3, x_shift = 30, y_shift = 50)\ntilt_landscape_4 \u003c- tilt_map(fire_usa, y_tilt = 3, x_shift = 45, y_shift = 65)\n\nmap_list \u003c- list(tilt_landscape_1, tilt_landscape_2, tilt_landscape_3, tilt_landscape_4)\n\nplot_tiltedmaps(map_list, palette = c(\"tofino\", \"rocket\", \"mako\", \"magma\"), direction = c(-1, 1, 1, 1))\n```\n\n\u003cimg src=\"man/figures/README-adv-example.png\"\ndata-fig-alt=\"Advanced example of a stacked tilted map\" /\u003e\n\n## Code of Conduct\n\nPlease note that the `layer` project is released with a [Contributor\nCode of\nConduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html).\nBy contributing to this project, you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcosci%2Flayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcosci%2Flayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcosci%2Flayer/lists"}