Skip to content

Commit

Permalink
fixed #886
Browse files Browse the repository at this point in the history
  • Loading branch information
mtennekes committed Jun 10, 2024
1 parent 1238bef commit 2d69bf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/tmapTrans.R
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ tmapTransLines = function(shpTM, ord__, plot.order, args, scale) {
})
}

tmapTransCartogram = function(shpTM, area, ord__, plot.order, args, scale) {
tmapTransCartogram = function(shpTM, size, ord__, plot.order, args, scale) {
s = shpTM$shp

if (sf::st_is_longlat(s)) {
Expand All @@ -247,7 +247,7 @@ tmapTransCartogram = function(shpTM, area, ord__, plot.order, args, scale) {

message("Cartogram in progress...")

x = sf::st_sf(geometry = s, weight = area, tmapID__ = shpTM$tmapID)
x = sf::st_sf(geometry = s, weight = size, tmapID__ = shpTM$tmapID)
x = x[x$weight > 0,]


Expand Down

0 comments on commit 2d69bf5

Please sign in to comment.