Skip to content

Commit

Permalink
Prepare for next release
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrerebeau committed Jul 1, 2024
1 parent 0a9639b commit 2ab6f36
Show file tree
Hide file tree
Showing 13 changed files with 97 additions and 108 deletions.
71 changes: 29 additions & 42 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# -----------------------------------------------------------
# CITATION file created with {cffr} R package, v0.5.0
# --------------------------------------------
# CITATION file created with {cffr} R package
# See also: https://docs.ropensci.org/cffr/
# -----------------------------------------------------------
# --------------------------------------------

cff-version: 1.2.0
message: 'To cite package "khroma" in publications use:'
type: software
license: GPL-3.0-or-later
title: 'khroma: Colour Schemes for Scientific Data Visualization'
version: 1.12.0
version: 1.13.0
doi: 10.5281/zenodo.1472077
abstract: Color schemes ready for each type of data (qualitative, diverging or sequential),
with colors that are distinct for all people, including color-blind readers. This
package provides an implementation of Paul Tol (2018) and Fabio Crameri (2018) <doi:10.5194/gmd-11-2541-2018>
package provides an implementation of Paul Tol (2018) and Fabio Crameri (2018) <https://doi.org/10.5194/gmd-11-2541-2018>
color schemes for use with 'graphics' or 'ggplot2'. It provides tools to simulate
color-blindness and to test how well the colors of any palette are identifiable.
Several scientific thematic schemes (geologic timescale, land cover, FAO soils,
Expand All @@ -33,13 +33,12 @@ preferred-citation:
orcid: https://orcid.org/0000-0001-5759-4944
affiliation: Université Bordeaux Montaigne
year: '2024'
location:
name: Pessac, France
notes: R package version 1.12.0
doi: 10.5281/zenodo.1472077
url: https://packages.tesselle.org/khroma/
institution:
name: Université Bordeaux Montaigne
address: Pessac, France
notes: R package version 1.13.0
doi: 10.5281/zenodo.1472077
url: https://packages.tesselle.org/khroma/
repository: https://CRAN.R-project.org/package=khroma
repository-code: https://github.com/tesselle/khroma
url: https://packages.tesselle.org/khroma/
Expand All @@ -61,67 +60,61 @@ references:
url: https://www.R-project.org/
authors:
- name: R Core Team
location:
name: Vienna, Austria
year: '2024'
institution:
name: R Foundation for Statistical Computing
address: Vienna, Austria
year: '2024'
version: '>= 3.5.0'
- type: software
title: graphics
abstract: 'R: A Language and Environment for Statistical Computing'
notes: Imports
authors:
- name: R Core Team
location:
name: Vienna, Austria
year: '2024'
institution:
name: R Foundation for Statistical Computing
address: Vienna, Austria
year: '2024'
- type: software
title: grDevices
abstract: 'R: A Language and Environment for Statistical Computing'
notes: Imports
authors:
- name: R Core Team
location:
name: Vienna, Austria
year: '2024'
institution:
name: R Foundation for Statistical Computing
address: Vienna, Austria
year: '2024'
- type: software
title: grid
abstract: 'R: A Language and Environment for Statistical Computing'
notes: Imports
authors:
- name: R Core Team
location:
name: Vienna, Austria
year: '2024'
institution:
name: R Foundation for Statistical Computing
address: Vienna, Austria
year: '2024'
- type: software
title: stats
abstract: 'R: A Language and Environment for Statistical Computing'
notes: Imports
authors:
- name: R Core Team
location:
name: Vienna, Austria
year: '2024'
institution:
name: R Foundation for Statistical Computing
address: Vienna, Austria
year: '2024'
- type: software
title: utils
abstract: 'R: A Language and Environment for Statistical Computing'
notes: Imports
authors:
- name: R Core Team
location:
name: Vienna, Austria
year: '2024'
institution:
name: R Foundation for Statistical Computing
address: Vienna, Austria
year: '2024'
- type: software
title: ggplot2
abstract: 'ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics'
Expand Down Expand Up @@ -156,18 +149,10 @@ references:
- family-names: Dunnington
given-names: Dewey
orcid: https://orcid.org/0000-0002-9415-4582
year: '2024'
- type: software
title: ggraph
abstract: 'ggraph: An Implementation of Grammar of Graphics for Graphs and Networks'
notes: Suggests
url: https://ggraph.data-imaginist.com
repository: https://CRAN.R-project.org/package=ggraph
authors:
- family-names: Pedersen
given-names: Thomas Lin
email: thomasp85@gmail.com
orcid: https://orcid.org/0000-0002-5147-4711
- family-names: Brand
given-names: Teun
name-particle: van den
orcid: https://orcid.org/0000-0002-9335-7468
year: '2024'
- type: software
title: knitr
Expand Down Expand Up @@ -282,8 +267,9 @@ references:
url: https://github.com/markvanderloo/tinytest
repository: https://CRAN.R-project.org/package=tinytest
authors:
- family-names: van der Loo
- family-names: Loo
given-names: Mark
name-particle: van der
email: mark.vanderloo@gmail.com
orcid: https://orcid.org/0000-0002-9807-4686
year: '2024'
Expand Down Expand Up @@ -344,4 +330,5 @@ identifiers:
value: 10.5281/zenodo.10470003
- description: The Software Heritage identifier for version 1.4.0.
type: swh
value: swh:1:dir:ac530bf9321ee33e982c1e3fa44c275e01ba3fb1
value: swh:1:snp:4eeb6407ecccc7391eddcf1c83dd8b0a20168592

2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: khroma
Title: Colour Schemes for Scientific Data Visualization
Version: 1.12.0.9000
Version: 1.13.0
Authors@R: c(
person("Nicolas", "Frerebeau", , "nicolas.frerebeau@u-bordeaux-montaigne.fr", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-5759-4944", affiliation = "Université Bordeaux Montaigne")),
Expand Down
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# khroma 1.12.0.9000
# khroma 1.13.0
## New functions
* Add `palette_color_picker()`, `palette_color_continuous()` and `palette_color_discrete()` to map values to colors.
* Add `palette_shape()` and `palette_line()` to map values to symbols.
Expand All @@ -17,7 +17,7 @@
* Add Paul Tol `nightfall` and `incandescent` colour schemes.

## Bugfixes & changes
* Fix `discreterainbow` scheme (qualitative scheme instead of sequential).
* Fix `discreterainbow` scheme (*qualitative* scheme instead of *sequential*).

# khroma 1.11.0
## Bugfixes & changes
Expand Down
2 changes: 1 addition & 1 deletion R/khroma-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#' \tabular{ll}{
#' **Package:** \tab khroma \cr
#' **Type:** \tab Package \cr
#' **Version:** \tab 1.12.0 \cr
#' **Version:** \tab 1.13.0 \cr
#' **License:** \tab GPL-3 \cr
#' **Zenodo:** \tab \doi{10.5281/zenodo.1472077} \cr
#' }
Expand Down
9 changes: 6 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Sys.setlocale("LC_MESSAGES", 'en_GB.UTF-8') # Force locale
[![R-CMD-check](https://github.com/tesselle/khroma/workflows/R-CMD-check/badge.svg)](https://github.com/tesselle/khroma/actions)
[![codecov](https://codecov.io/gh/tesselle/khroma/branch/main/graph/badge.svg)](https://app.codecov.io/gh/tesselle/khroma)
[![CodeFactor](https://www.codefactor.io/repository/github/tesselle/khroma/badge/main)](https://www.codefactor.io/repository/github/tesselle/khroma/overview/main)
[![Dependencies](https://tinyverse.netlify.com/badge/khroma)](https://cran.r-project.org/package=khroma)
[![Dependencies](https://tinyverse.netlify.app/badge/khroma)](https://cran.r-project.org/package=khroma)

[![r-universe](https://tesselle.r-universe.dev/badges/khroma)](https://tesselle.r-universe.dev/khroma){.pkgdown-devel}
[![CRAN Version](http://www.r-pkg.org/badges/version/khroma)](https://cran.r-project.org/package=khroma){.pkgdown-release}
Expand Down Expand Up @@ -53,8 +53,11 @@ For specific uses, several scientific thematic schemes (geologic timescale, land

All these color schemes are implemented for use with base R **graphics** or [**ggplot2**](https://github.com/tidyverse/ggplot2) and [**ggraph**](https://github.com/thomasp85/ggraph).

```{r citation, echo=FALSE, comment=''}
utils::citation("khroma")
---

```{r citation, echo=FALSE, comment='', results='asis'}
cite <- utils::citation("khroma")
print(cite, bibtex = FALSE)
```

## Installation
Expand Down
46 changes: 18 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[![R-CMD-check](https://github.com/tesselle/khroma/workflows/R-CMD-check/badge.svg)](https://github.com/tesselle/khroma/actions)
[![codecov](https://codecov.io/gh/tesselle/khroma/branch/main/graph/badge.svg)](https://app.codecov.io/gh/tesselle/khroma)
[![CodeFactor](https://www.codefactor.io/repository/github/tesselle/khroma/badge/main)](https://www.codefactor.io/repository/github/tesselle/khroma/overview/main)
[![Dependencies](https://tinyverse.netlify.com/badge/khroma)](https://cran.r-project.org/package=khroma)
[![Dependencies](https://tinyverse.netlify.app/badge/khroma)](https://cran.r-project.org/package=khroma)

<a href="https://tesselle.r-universe.dev/khroma"
class="pkgdown-devel"><img
Expand Down Expand Up @@ -70,28 +70,17 @@ All these color schemes are implemented for use with base R **graphics**
or [**ggplot2**](https://github.com/tidyverse/ggplot2) and
[**ggraph**](https://github.com/thomasp85/ggraph).

To cite khroma in publications use:
------------------------------------------------------------------------

Frerebeau N (2024). _khroma: Colour Schemes for Scientific Data
Visualization_. Université Bordeaux Montaigne, Pessac, France.
doi:10.5281/zenodo.1472077 <https://doi.org/10.5281/zenodo.1472077>,
R package version 1.12.0, <https://packages.tesselle.org/khroma/>.
To cite khroma in publications use:

A BibTeX entry for LaTeX users is
Frerebeau N (2024). *khroma: Colour Schemes for Scientific Data
Visualization*. Université Bordeaux Montaigne, Pessac, France.
<doi:10.5281/zenodo.1472077> <https://doi.org/10.5281/zenodo.1472077>, R
package version 1.13.0, <https://packages.tesselle.org/khroma/>.

@Manual{,
author = {Nicolas Frerebeau},
title = {{khroma: Colour Schemes for Scientific Data Visualization}},
year = {2024},
organization = {Université Bordeaux Montaigne},
address = {Pessac, France},
note = {R package version 1.12.0},
doi = {10.5281/zenodo.1472077},
url = {https://packages.tesselle.org/khroma/},
}

This package is a part of the tesselle project
<https://www.tesselle.org>.
This package is a part of the tesselle project
<https://www.tesselle.org>.

## Installation

Expand Down Expand Up @@ -191,21 +180,20 @@ info()

### Color palettes and scales

`color()` returns a palette function that when called with a single
integer argument returns a vector of colors.
`color()` returns a function that when called with a single integer
argument returns a vector of colors.

``` r
## Paul Tol's bright color scheme
bright <- color("bright")
bright(7)
#> blue red green yellow cyan purple grey
#> "#4477AA" "#EE6677" "#228833" "#CCBB44" "#66CCEE" "#AA3377" "#BBBBBB"
#> [1] "#4477AA" "#EE6677" "#228833" "#CCBB44" "#66CCEE" "#AA3377" "#BBBBBB"
#> attr(,"missing")
#> [1] NA
```

``` r
## Show the color palette
## Plot the color scheme
plot_scheme(bright(7), colours = TRUE)
```

Expand All @@ -220,10 +208,11 @@ plot(
x = mpg$displ,
y = mpg$hwy,
pch = 16,
col = color("bright")(7)[as.factor(mpg$class)],
col = palette_color_picker("bright")(mpg$class),
xlab = "displ",
ylab = "hwy",
panel.first = grid()
panel.first = grid(),
las = 1
)
```

Expand Down Expand Up @@ -290,7 +279,8 @@ to this project, you agree to abide by its terms.

## References

<div id="refs" class="references csl-bib-body hanging-indent">
<div id="refs" class="references csl-bib-body hanging-indent"
entry-spacing="0">

<div id="ref-crameri2018" class="csl-entry">

Expand Down
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ comment: false

ignore:
- "R/khroma-deprecated.R"
- "R/khroma-defunct.R"
- "R/zzz.R"

coverage:
Expand Down
8 changes: 4 additions & 4 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"codeRepository": "https://github.com/tesselle/khroma",
"issueTracker": "https://github.com/tesselle/khroma/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "1.12.0",
"version": "1.13.0",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.3.2 (2023-10-31)",
"runtimePlatform": "R version 4.4.1 (2024-06-14)",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
Expand Down Expand Up @@ -228,7 +228,7 @@
},
"SystemRequirements": null
},
"fileSize": "1385.792KB",
"fileSize": "1412.117KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand All @@ -243,7 +243,7 @@
"name": "{khroma: Colour Schemes for Scientific Data Visualization}",
"identifier": "10.5281/zenodo.1472077",
"url": "https://packages.tesselle.org/khroma/",
"description": "R package version 1.12.0",
"description": "R package version 1.13.0",
"@id": "https://doi.org/10.5281/zenodo.1472077",
"sameAs": "https://doi.org/10.5281/zenodo.1472077"
}
Expand Down
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Test environments
* Local R installation: R 4.3.2
* Local R installation: R 4.4.1
* Ubuntu (on GitHub Actions): R devel, release, oldrel
* Windows (on GitHub Actions and win-builder): R devel, release, oldrel
* MacOS (on GitHub Actions): R release
Expand Down
Binary file modified man/figures/README-usage-plot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion man/khroma-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2ab6f36

Please sign in to comment.