Tmap: tm_fill: colorNA not effective when col >1?

Created on 17 Sep 2018  路  3Comments  路  Source: mtennekes/tmap

Hi

I am not able to show NA values if I use more than one variable in tm_fill(), am I missing something?


library(tmap)
data(World)

World[9, c("pop_est", "pop_est_dens")] <- NA

## works
tm_shape(World) + 
  tm_fill(c("pop_est"), colorNA = "red") 

## not anymore?
tm_shape(World) + 
  tm_fill(c("pop_est", "pop_est_dens"), colorNA = "red")

I am using tmap 2.1.1. Thanks!!

bug question

Most helpful comment

Thanks, it's working now

All 3 comments

Thanks, it's working now

is this fixed for tmap 2.1-1? Or have I missed something?
When I run
tm_shape(World) +
tm_fill(c("pop_est", "pop_est_dens"), colorNA = "red")
Get the same problem.

fixed in tmap 2.2 at least!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zjslagle picture zjslagle  路  4Comments

Nowosad picture Nowosad  路  9Comments

Nowosad picture Nowosad  路  4Comments

Robinlovelace picture Robinlovelace  路  4Comments

jarsc568 picture jarsc568  路  8Comments