Using zcol
, cex
and burst
it is possible to adjust the size of all levels within a point layer in mapview
. However, the size of each point is relative only to the size of other points WITHIN that same level. For example, in the following code, the size of a point with number.of.types
value 14 in group a
is the same as number.of.types
value 6 in group b
.
library(tidyverse)
library(tidyr)
library(mapview)
b = breweries %>%
drop_na(number.of.types) %>%
mutate(group = ifelse(number.of.types >= 7,"a","b"))
b %>%
mapview(zcol="group", cex="number.of.types", burst=T)
Is it possible to standardise the size of points across levels without resorting to having to define this for each layer level individually?