Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mapview ignoring colour palette and repeating colours #456

Open
fernandabiologia opened this issue Jul 26, 2023 · 1 comment
Open

mapview ignoring colour palette and repeating colours #456

fernandabiologia opened this issue Jul 26, 2023 · 1 comment

Comments

@fernandabiologia
Copy link

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.

@tim-salabim
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants