NEWS.md
states_nigeria
for the States of Nigeria.map_ng
gained a newly documented argument plot
, which hitherto was passed internally to maps::map()
via ...
.disambiguate_lga
, which takes a single-element lgas
object for handling the names of Local Government Areas that are shared between separate States. This function enables the (re)setting of the State
attribute of such objects; this can be done interactively, where the replicated States’ names are presented for selection by users.fix_region
, the lgas
constructor function does not warn if there are spelling mistakes, as this turned out to be a bit confusing when it was used. In earlier versions, warnings persisted even after fixes were applied.cex
argument (passed on to maps::map.text
internally, via ...
).?InternalGenerics
were introduced e.g. for c()
, [
, [[
, na.exclude
, etc.0
s) with the letter O
(works for both upper and lower case).regions
.legend.text
for map_ng
using an idiom that is similar to the one used in base::barplot
, thanks to observations made by @VictoriaLatham in issue #27.states
and lgas
objects.lgas
objects in the event that the argument provided is the name of an LGA that is synonymous with it’s State (argument strict
).head
and tail
to work with objects that inherit from class regions
.states
and lgas
gain a logical argument warn
to control whether or not they issue a warning when an input string does not contain an actual State/LGA.naijR::lgas()
was producing an error.is_lga
, which checks an object for Local Government Areas.is_state
when the object checked is not of type character
.