labels.countries {necountries} | R Documentation |
Compute a unique sf
to optimize the position of labels
Description
Displaying labels on a map is complicated because of serious
overlapping problems. Labels for different kinds of entities can be
put in a unique sf
Usage
## S3 method for class 'countries'
labels(object, ..., var)
Arguments
object |
a |
... |
further arguments (currently unused), |
var |
a character vector indicating the entities that should
be labeleld, it can be |
Value
a sf
containing:
-
name
the names of the entities, -
type
the type of the entity (eithercountry
, capitaland
towns') -
point
the coordinate of the points (obtained usingst_point_on_surface
for countries)
[Package necountries version 0.1-1 Index]