Skip to content

Commit 7ec386d

Browse files
committed
fix: correct the color assignment in 'choro', 'prop_choro' and 'symb_choro'
submit to CRAN ASAP see #56
1 parent 6812048 commit 7ec386d

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ message: 'To cite package "mapsf" in publications use:'
88
type: software
99
license: GPL-3.0-only
1010
title: 'mapsf: Thematic Cartography'
11-
version: 0.7.0
11+
version: 0.7.1
1212
abstract: Create and integrate thematic maps in your workflow. This package helps
1313
to design various cartographic representations such as proportional symbols, choropleth
1414
or typology maps. It also offers several functions to display layout elements that

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: mapsf
22
Title: Thematic Cartography
3-
Version: 0.7.0
3+
Version: 0.7.1
44
Authors@R: c(
55
person("Timothée", "Giraud", email = "timothee.giraud@cnrs.fr",
66
role = c("cre","aut"), comment = c(ORCID = "0000-0002-1932-3323")),

NEWS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2+
# mapsf 0.7.1
3+
4+
## Fix
5+
- fix bug in color assignment in 'choro', 'prop_choro' and 'symb_choro' maps
6+
when supplying "incomplete" breaks (#56)
7+
18
# mapsf 0.7.0
29

310
## Fix

R/mf_map_utils.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ get_col_vec <- function(x, breaks, pal, jen = FALSE) {
2525
} else {
2626
itv <- findInterval(x, breaks, all.inside = FALSE, rightmost.closed = TRUE)
2727
}
28+
itv[itv == 0] <- length(breaks)
2829
colvec <- pal[itv]
2930
return(colvec)
3031
}

codemeta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"codeRepository": "https://riatelab.github.io/mapsf/",
88
"issueTracker": "https://github.com/riatelab/mapsf/issues/",
99
"license": "https://spdx.org/licenses/GPL-3.0",
10-
"version": "0.7.0",
10+
"version": "0.7.1",
1111
"programmingLanguage": {
1212
"@type": "ComputerLanguage",
1313
"name": "R",
@@ -236,5 +236,5 @@
236236
},
237237
"SystemRequirements": null
238238
},
239-
"fileSize": "5262.473KB"
239+
"fileSize": "5256.285KB"
240240
}

0 commit comments

Comments
 (0)