You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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.
The text was updated successfully, but these errors were encountered: