{"id":19339148,"url":"https://github.com/riatelab/mapiso","last_synced_at":"2026-03-06T12:31:27.608Z","repository":{"id":37399646,"uuid":"505439949","full_name":"riatelab/mapiso","owner":"riatelab","description":"Transformation of regularly spaced grids into contour polygons","archived":false,"fork":false,"pushed_at":"2023-05-12T11:43:51.000Z","size":1251,"stargazers_count":35,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T01:42:55.639Z","etag":null,"topics":["map","rspatial","rstats"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/riatelab.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":"codemeta.json","zenodo":null}},"created_at":"2022-06-20T12:51:58.000Z","updated_at":"2025-03-22T10:35:02.000Z","dependencies_parsed_at":"2023-12-03T14:43:31.962Z","dependency_job_id":null,"html_url":"https://github.com/riatelab/mapiso","commit_stats":{"total_commits":32,"total_committers":3,"mean_commits":"10.666666666666666","dds":0.0625,"last_synced_commit":"245adfdf1aa3f9297311d24941ed9b94ba98c34b"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/riatelab/mapiso","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riatelab%2Fmapiso","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riatelab%2Fmapiso/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riatelab%2Fmapiso/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riatelab%2Fmapiso/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riatelab","download_url":"https://codeload.github.com/riatelab/mapiso/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riatelab%2Fmapiso/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30176147,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T11:48:51.886Z","status":"ssl_error","status_checked_at":"2026-03-06T11:48:51.460Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["map","rspatial","rstats"],"created_at":"2024-11-10T03:20:08.951Z","updated_at":"2026-03-06T12:31:27.588Z","avatar_url":"https://github.com/riatelab.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"80%\"\n)\n```\n\n# mapiso \u003cimg src=\"man/figures/logo.png\" align=\"right\" width=\"140\"/\u003e\n\n\u003c!-- badges: start --\u003e\n[![Project Status: Active – The project has reached a stable, usable\nstate and is being actively\ndeveloped.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)\n[![CRAN](https://www.r-pkg.org/badges/version/mapiso)](https://cran.r-project.org/package=mapiso)\n[![R-CMD-check](https://github.com/riatelab/mapiso/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/riatelab/mapiso/actions/workflows/R-CMD-check.yaml)\n[![Codecov test coverage](https://codecov.io/gh/riatelab/mapiso/branch/main/graph/badge.svg)](https://app.codecov.io/gh/riatelab/mapiso?branch=main)\n\u003c!-- badges: end --\u003e\n\nThe goal of `mapiso` is to ease the transformation of regularly spaced grids containing continuous data into contour polygons.\nThese grids can be defined by data.frames (x, y, value), `sf` objects or SpatRasters from `terra`.  \n`mapsio` is a wrapper around [`isoband`](https://isoband.r-lib.org).\n\n\n## Installation\n\nYou can install the released version of `mapiso` from\n[CRAN](https://cran.r-project.org/package=mapiso) with:\n\n``` r\ninstall.packages(\"mapiso\")\n```\n\nAlternatively, you can install the development version of `mapiso` from\nGitHub with:\n\n``` r\nremotes::install_github(\"riatelab/mapiso\")\n```\n\n## Usage\n\n\n### Raster\n\n```{r raster}\nlibrary(mapiso)\nlibrary(terra)\nlibrary(mapsf)\nr \u003c- rast(system.file(\"tif/elevation.tif\", package = \"mapiso\"))\nisor \u003c- mapiso(x = r)\nmf_theme(mar = c(0, 0, 0, 0))\nmf_raster(r)\nmf_map(isor, col = NA, add = TRUE)\n```\n\n### sf regular grid\n\n```{r sf}\nlibrary(mapiso)\nlibrary(sf)\nlibrary(mapsf)\n# gridded data\ns \u003c- st_read(system.file(\"gpkg/elevation.gpkg\", package = \"mapiso\"), \n             layer = \"elevation\", quiet = TRUE)\n# mask\nm \u003c- st_read(system.file(\"gpkg/elevation.gpkg\", package = \"mapiso\"),\n             layer = \"com\", quiet = TRUE)\n# custom breaks\nbks \u003c-c(98,100, 150, 200, 250, 300, 350, 400, 412.6) \nisos \u003c- mapiso(x = s, var = \"elevation\", breaks = bks, mask = m)\nmf_map(isos, \"isomin\", \"choro\", \n       breaks = bks, border = NA, \n       leg_title = \"elevation\")\nmf_map(m, col = NA, add = TRUE)\nmf_map(s, cex = 1, pch = \".\", col = \"grey20\", add = TRUE)\n```\n\n### data.frame\n\n```{r data.frame}\nlibrary(mapiso)\nlibrary(mapsf)\nd \u003c- read.csv(system.file(\"csv/elevation.csv\", package = \"mapiso\"))\nhead(d)\nisod \u003c- mapiso(x = d, var = 'elevation', coords = c('x', 'y'), crs = 'epsg:2154')\nbks \u003c- unique(c(isod$isomin, isod$isomax))\nmf_map(isod, \"isomin\", \"choro\", breaks = bks, leg_title = \"elevation\")\n```\n\n\n\n## Community Guidelines\n\nOne can contribute to the package through [pull\nrequests](https://github.com/riatelab/mapiso) and report issues or\nask questions [here](https://github.com/riatelab/mapiso/issues).  \nThis project uses [conventional\ncommits](https://www.conventionalcommits.org/en/v1.0.0-beta.3/) and\n[semantic versioning](https://semver.org/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friatelab%2Fmapiso","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friatelab%2Fmapiso","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friatelab%2Fmapiso/lists"}