mapview icon indicating copy to clipboard operation
mapview copied to clipboard

mapview ignoring colour palette and repeating colours

Open fernandabiologia opened this issue 2 years ago • 1 comments

Hi,

I'm using the argument burst = TRUE to plot the levels of a variable as separate layers in mapview. I have 13 levels, so I first created a palette with 13 colours. It plots the map but with repeated colours, it seems to ignore the palette I created. Am I missing some argument here? Or is this a bug?

Code:

n <- 13 palette <- distinctColorPalette(n) mapview::mapview(food_plants_sp, zcol = "species", col.regions = palette, burst = TRUE)

I'm using the github version of mapview and my R session details are:

R version 4.3.0 (2023-04-21 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19045) Matrix products: default

Any help would be much appreciated. Thanks.

fernandabiologia avatar Jul 26 '23 04:07 fernandabiologia

Can you share the data somehow or create a proper reproducible example so I can investigate?

tim-salabim avatar Jul 26 '23 06:07 tim-salabim