Last chance! 50% off unlimited learning
Sale ends in
spplot
sp.layout
item for use in spplot
in
order to draw labels at the coordinates of the spatial object.layout.labels(obj, labels = TRUE)
Spatial
class.FALSE
orNULL
value omits labels
(NULL
is returned),labels = TRUE
usesrow.names(obj)
,sp.layout
item for spplot
, which is a list.
Its first element is "panel.text"
and subsequent elements are
arguments to that function based on the labels
specification.data("measlesWeserEms")
(li <- layout.labels(measlesWeserEms@map, labels = list(font=2, labels="GEN")))
## example usage in spplot()
spplot(measlesWeserEms@map, zcol = "AREA", sp.layout = list(li),
col.regions = rev(heat.colors(100)))
Run the code above in your browser using DataLab