Closed tibbles-and-tribbles closed 9 months ago
style
is an argument in the tm_scale_intervals()
function:
library(spData)
library(tmap)
tm_shape(nz) +
tm_polygons(
fill = "Median_income",
tm_scale_intervals(style = "jenks")
)
@tibbles-and-tribbles what do you think about this rewrite: https://github.com/geocompx/geocompr/pull/1070/files?
@Nowosad : yes that clarifies things!
Thanks! I also think it is better now.
In subsection 9.2.4 "Scales" (https://r.geocompx.org/adv-map#scales), the
style
argument fortmap
functions is discussed. There's a list of possible values forstyle
, but there's no code example. When I run my own code example, I get a deprecation warning.Output:
But the
style
argument still works with functions liketm_scale_intervals()
, so perhaps there's no issue here.