rcartocolor

Implementation of the CARTOcolor palettes in R

https://github.com/nowosad/rcartocolor

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.2%) to scientific vocabulary

Keywords

color-palette ggplot2 package r visualization
Last synced: 4 months ago · JSON representation

Repository

Implementation of the CARTOcolor palettes in R

Basic Info
Statistics
  • Stars: 111
  • Watchers: 3
  • Forks: 7
  • Open Issues: 0
  • Releases: 0
Topics
color-palette ggplot2 package r visualization
Created about 8 years ago · Last pushed 5 months ago
Metadata Files
Readme License Codemeta

README.Rmd

---
output: github_document
---



```{r, echo = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  fig.height = 4
)
```

# rcartocolor 


[![R-CMD-check](https://github.com/Nowosad/rcartocolor/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/Nowosad/rcartocolor/actions/workflows/R-CMD-check.yaml)
[![codecov](https://codecov.io/gh/Nowosad/rcartocolor/branch/master/graph/badge.svg?token=tkiSWsEUYy)](https://app.codecov.io/gh/Nowosad/rcartocolor)
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/rcartocolor)](https://cran.r-project.org/package=rcartocolor)
[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/rcartocolor)](https://cran.r-project.org/package=rcartocolor)


The goal of `rcartocolor` is to provide color schemes for maps and other graphics designed by [CARTO](https://carto.com/) as described at https://carto.com/carto-colors/.

## Installation

Get the released version from CRAN:

```{r cran-installation, eval = FALSE}
install.packages("rcartocolor")
```

Get the development version from github:

```{r gh-installation, eval = FALSE}
# install.packages("remotes")
remotes::install_github("Nowosad/rcartocolor")
```

## Examples

Display a CARTOcolor palette:

```{r example}
library(rcartocolor)
display_carto_pal(7, "Vivid")
```

Create a CARTOcolor palette:

```{r example2}
my_colors = carto_pal(7, "Burg")
my_colors
```

Display all of the CARTOcolor palettes:

```{r example3, fig.height=7, fig.width=6}
display_carto_all()
```

[Only display colorblind friendly palettes](https://jakubnowosad.com/colorblindcheck/articles/check_rcartocolor.html):

```{r example4, fig.height=6, fig.width=6}
display_carto_all(colorblind_friendly = TRUE)
```

### **ggplot2**

The **rcartocolor** package contains four **ggplot2** color scales: two for continuous data - `scale_fill_carto_c`, `scale_color_carto_c` and two for discrete data - `scale_fill_carto_d`, `scale_color_carto_d`:

```{r examplegg1}
# devtools::install_github("tidyverse/ggplot2")
library(sf)
library(spData)
library(ggplot2)
ggplot(world, aes(fill = lifeExp)) +
        geom_sf(data = world) +
        coord_sf(crs = "+proj=robin") +
        scale_fill_carto_c(name = "Life expectancy: ",
                           type = "diverging", palette = "Earth", direction = -1) +
        theme_void()
```


```{r examplegg2}
ggplot(world, aes(fill = region_un)) +
        geom_sf(data = world) +
        coord_sf(crs = "+proj=robin")  +
        scale_fill_carto_d(name = "Region: ", palette = "Safe") +
        theme_void()
```

## Contributions

[Feel free to submit issues and enhancement requests.](https://github.com/Nowosad/rcartocolor/issues)

Owner

  • Name: Jakub Nowosad
  • Login: Nowosad
  • Kind: user
  • Location: Poznań, Poland

Geocomputation, Pattern Analysis, Spatial Data Mining, Geostatistics, and R.

CodeMeta (codemeta.json)

{
  "@context": [
    "https://doi.org/10.5063/schema/codemeta-2.0",
    "http://schema.org"
  ],
  "@type": "SoftwareSourceCode",
  "identifier": "rcartocolor",
  "description": "Provides color schemes for maps and other graphics\n    designed by 'CARTO' as described at <https://carto.com/carto-colors/>.\n    It includes four types of palettes: aggregation, diverging, qualitative, \n    and quantitative.",
  "name": "rcartocolor: 'CARTOColors' Palettes",
  "codeRepository": "https://github.com/Nowosad/rcartocolor",
  "issueTracker": "https://github.com/Nowosad/rcartocolor/issues",
  "license": "https://spdx.org/licenses/MIT",
  "version": "2.1.0",
  "programmingLanguage": {
    "@type": "ComputerLanguage",
    "name": "R",
    "url": "https://r-project.org"
  },
  "runtimePlatform": "R version 4.0.2 (2020-06-22)",
  "provider": {
    "@id": "https://cran.r-project.org",
    "@type": "Organization",
    "name": "Comprehensive R Archive Network (CRAN)",
    "url": "https://cran.r-project.org"
  },
  "author": [
    {
      "@type": "Person",
      "givenName": "Jakub",
      "familyName": "Nowosad",
      "email": "nowosad.jakub@gmail.com",
      "@id": "https://orcid.org/0000-0002-1057-3721"
    }
  ],
  "contributor": {},
  "copyrightHolder": {},
  "funder": {},
  "maintainer": [
    {
      "@type": "Person",
      "givenName": "Jakub",
      "familyName": "Nowosad",
      "email": "nowosad.jakub@gmail.com",
      "@id": "https://orcid.org/0000-0002-1057-3721"
    }
  ],
  "softwareSuggestions": [
    {
      "@type": "SoftwareApplication",
      "identifier": "covr",
      "name": "covr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=covr"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "MASS",
      "name": "MASS",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=MASS"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "testthat",
      "name": "testthat",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=testthat"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "vdiffr",
      "name": "vdiffr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=vdiffr"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "sf",
      "name": "sf",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=sf"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "spData",
      "name": "spData",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=spData"
    }
  ],
  "softwareRequirements": [
    {
      "@type": "SoftwareApplication",
      "identifier": "R",
      "name": "R",
      "version": ">= 3.4"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "ggplot2",
      "name": "ggplot2",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=ggplot2"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "scales",
      "name": "scales",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=scales"
    }
  ],
  "readme": "https://github.com/Nowosad/rcartocolor/blob/master/README.md",
  "fileSize": "1311.976KB",
  "contIntegration": [
    "https://travis-ci.org/Nowosad/rcartocolor",
    "https://codecov.io/gh/Nowosad/rcartocolor"
  ],
  "keywords": [
    "r",
    "package",
    "color-palette",
    "visualization",
    "ggplot2"
  ],
  "citation": [
    {
      "@type": "SoftwareSourceCode",
      "datePublished": "2018",
      "author": [
        {
          "@type": "Person",
          "givenName": "Jakub",
          "familyName": "Nowosad"
        }
      ],
      "name": "'CARTOColors' Palettes",
      "url": "https://nowosad.github.io/rcartocolor",
      "description": "R package version 1.0"
    }
  ],
  "relatedLink": "https://CRAN.R-project.org/package=rcartocolor"
}

GitHub Events

Total
  • Watch event: 3
  • Push event: 2
Last Year
  • Watch event: 3
  • Push event: 2

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 92
  • Total Committers: 3
  • Avg Commits per committer: 30.667
  • Development Distribution Score (DDS): 0.033
Past Year
  • Commits: 4
  • Committers: 1
  • Avg Commits per committer: 4.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
jn t****i@g****m 89
Caleb Jenkins o****n@g****m 2
olivroy 5****y 1

Issues and Pull Requests

Last synced: 5 months ago

All Time
  • Total issues: 6
  • Total pull requests: 2
  • Average time to close issues: 13 days
  • Average time to close pull requests: about 6 hours
  • Total issue authors: 5
  • Total pull request authors: 2
  • Average comments per issue: 2.33
  • Average comments per pull request: 1.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • Nowosad (2)
  • JonnyBanana (1)
  • tungttnguyen (1)
  • bruc (1)
  • paleolimbot (1)
Pull Request Authors
  • olivroy (2)
  • cjtexas (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • cran 4,232 last-month
  • Total docker downloads: 42,361
  • Total dependent packages: 2
    (may contain duplicates)
  • Total dependent repositories: 39
    (may contain duplicates)
  • Total versions: 7
  • Total maintainers: 1
cran.r-project.org: rcartocolor

'CARTOColors' Palettes

  • Versions: 6
  • Dependent Packages: 2
  • Dependent Repositories: 39
  • Downloads: 4,232 Last month
  • Docker Downloads: 42,361
Rankings
Docker downloads count: 0.6%
Stargazers count: 3.7%
Dependent repos count: 4.2%
Average: 6.6%
Downloads: 8.0%
Forks count: 9.6%
Dependent packages count: 13.7%
Maintainers (1)
Last synced: 4 months ago
conda-forge.org: r-rcartocolor
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Stargazers count: 32.7%
Dependent repos count: 34.0%
Average: 41.4%
Forks count: 47.7%
Dependent packages count: 51.2%
Last synced: 4 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.4 depends
  • ggplot2 * imports
  • scales * imports
  • MASS * suggests
  • covr * suggests
  • sf * suggests
  • spData * suggests
  • testthat * suggests
  • vdiffr * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite