labels.countries | R Documentation |
sf
to optimize the position of labelsDisplaying labels on a map is complicated because of serious
overlapping problems. Labels for different kinds of entities can be
put in a unique sf
## S3 method for class 'countries'
labels(object, ..., var)
object |
a |
... |
further arguments (currently unused), |
var |
a character vector indicating the entities that should
be labeleld, it can be |
a sf
containing:
name
the names of the entities,
type
the type of the entity (either country
, capitaland
towns')
point
the coordinate of the points (obtained using
st_point_on_surface
for countries)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.