Learn R Programming

micromapST (version 3.1.1)

AfricaBG: AfricaBG border group datasets to support creating micromaps for the 52 countries in Africa

Description

The micromapST function has the ability to generate linked micromaps for any geographical area. To specify the geographical area, the bordGrp call argument is used to specify the border group dataset for the geographical area. The AfricaBG border group dataset supports creating linked micromaps for the 52 countries (sub-areas) on the African continent. When the bordGrp call argument is set to AfricaBG, the appropriate name table (country names and abbreviations) and the 52 sub-areas (countries) boundary data is loaded in micromapST. The user's data is then linked to the boundary data via the country's name, abbreviation, alternate abbreviation, or ID based on the table below.

Usage

data(AfricaBG)

Arguments

Details

The AfricaBG border group dataset contains the following data.frames:

areaParms

- contains specific parameters for the border group

areaNamesAbbrsIDs

- containing the names, abbreviations, and numerical identifier for the 59 countries in Africa.

areaVisBorders

- the boundary point lists for each country in Africa.

L2VisBorders

- the boundaries for an intermediate level and is not used in this border group and is set to L3VisBorders as a place holder.

RegVisBorders

- the boundaries for regions in Africa. In this implementation of the border group, no regions are specified. This data frame is not used and is set to L3VisBorders as a place holder.

L3VisBorders

- the boundary of the Africa continent.

The Africa continent border group contains 52 country sub-areas. Each country has a row in the areaNamesAbbrsIDs data.frame and a set of polygons in the areaVisBorders data.frame datasets. No regions are defined in the Africa border group, so the L2VisBorders dataset is not used and the regions option is disabled. The L3VisBorders dataset contains the outline of the Africa continent.

The details on each of these data.frame structures can be found in the "bordGrp" section of this document. The areaNamesAbbrsIDs data.frame provides the linkages to the boundary data for each sub-area (country) using the fullname, abbreviation, alternate abbreviation, and numerical identifier for each country to the <statsDFrame> data based on the setting of the rowNames call argument.

A column or the data.frame row.names must match one of the types of names in the areaNamesAbbrsIDs data.frame name table. If the data row does not match a value in the name table, an warning is issued and the data is ignored. If no data is present for a sub-area (country) in the name table, the sub-area is mapped but not colored.

The following are a list of the names, abbreviations, alternate abbreviations and IDs for each country in the AfricaBG border group.

nameabalt_abid
AlgeriaALGDZ01
AngolaANGAO02
BeninBENBJ03
BotswanaBOTBW04
Burkina FasoBUFBF05
BurundiBURBI06
CameroonCAMCM07
Cape VerdeCAPCV08
Central African RepublicCARCF09
ChadCHATD10
ComorosCOMKM11
Congo-BrazzavilleCNGCG12
Cote d`IvoireCDICI13
Democratic Republic of CongoZAIZR14
DjiboutiDJIDJ15
EgyptEGYEG16
Equatorial GuineaEQGGQ17
EritreaERIER18
EthiopiaETHET19
GabonGABGA20
GambiaGAMGM21
GhanaGHAGH22
GuineaGINGN23
Guinea-BissauGUBGW24
KenyaKENKE25
LesothoLESLS26
LiberiaLIBLR27
LibyaLAJLY28
MadagascarMADMG29
MalawiMAAMW30
MaliMALML31
MauritaniaMAUMR32
MoroccoMORMA33
MozambiqueMOZMZ34
NamibiaNAMNA35
NigerNIGNE36
NigeriaNIRNG37
RwandaRWARW38
Sao Tome and PrincipeSTPST39
SenegalSENSN40
Sierra LeoneSILSL41
SomaliaSOMSO42
South AfricaSOUSA43
SudanSUDSD44
SwazilandSWASZ45
TanzaniaTANTZ46
TogoTOGTG47
TunisiaTUNTN48
UgandaUGAUG49
Western SaharaWESWS50
ZambiaZAMZM51
ZimbabweZIMZW52

When this border group was created, there appeared to be no consistant set of abbreviations for the African countries. Therefore, the two most commonly found sets of abbreviations are included as the abbr and alt_abbr abbreviation sets. Set rownames to "ab" to reference the primary set and "alt_ab" to reference the second set of abbreviates in the name table.

The rowNames = "alias" and the regionB and dataRegionsOnly features are not supported in the AfricaBG border group.