Title: | Provides Ready to Use Shapefiles for Geographical Map of Bangladesh |
---|---|
Description: | Usually, it is difficult to plot choropleth maps for Bangladesh in 'R'. The 'bangladesh' package provides ready-to-use shapefiles for different administrative regions of Bangladesh (e.g., Division, District, Upazila, and Union). This package helps users to draw thematic maps of administrative regions of Bangladesh easily as it comes with the 'sf' objects for the boundaries. It also provides functions allowing users to efficiently get specific area maps and center coordinates for regions. Users can also search for a specific area and calculate the centroids of those areas. |
Authors: | Musaddiqur Rahman Ovi [aut, cre] |
Maintainer: | Musaddiqur Rahman Ovi <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.0.0 |
Built: | 2024-11-25 06:56:21 UTC |
Source: | CRAN |
A dataset containing Division, District, Upazila, and Union names
area_names
area_names
A data frame with 5160 rows and 4 variables:
district (admin level 2) names
division (admin level 1) names
upazila (admin level 3) names
upazila (admin level 3) names
Bangladesh Bureau of Statistics
uses tmap
bd_plot(level = "country", type = "static")
bd_plot(level = "country", type = "static")
level |
Administrative level of bangladesh. Should be one of: "country", "division", "district", "upazila","union' |
type |
Plotting mode: "static" or "interactive" |
Static or interactive plot for administrative levels
# Plot static map of district bd_plot(level = "district", type = "static")
# Plot static map of district bd_plot(level = "district", type = "static")
uses sf
bd_search(searchFor, level = "division", as.is = FALSE, coordinates = FALSE)
bd_search(searchFor, level = "division", as.is = FALSE, coordinates = FALSE)
searchFor |
search keyword |
level |
administrative level of bangladesh. Should be one of: "country", "division", "district", "upazila","union' |
as.is |
boolean, if TRUE, matches exact keyword as given |
coordinates |
boolean, if TRUE, returns centroids of searched areas (latitudes and longitudes) |
A data frame
bd_search("amtali", level = "union", as.is = TRUE, coordinates = TRUE)
bd_search("amtali", level = "union", as.is = TRUE, coordinates = TRUE)
get area names in English, available in the shapefiles
get_area_names()
get_area_names()
A data frame with area names in English
names <- get_area_names()
names <- get_area_names()
uses sf
get_coordinates(level = "division")
get_coordinates(level = "division")
level |
administrative level of bangladesh. Should be one of: "division", "district", "upazila","union' |
A data frame containing latitudes and longitudes
get_coordinates(level = "division") get_coordinates(level = "district")
get_coordinates(level = "division") get_coordinates(level = "district")
get partial maps for divisions
get_divisions(divisions, level = "division")
get_divisions(divisions, level = "division")
divisions |
character vector for division names. Can take multiple divisions. |
level |
administrative level of bangladesh. Should be one of: "division", "district", "upazila","union' |
shapefile for given administrative level
get_divisions(divisions = "Sylhet",level = "upazila")
get_divisions(divisions = "Sylhet",level = "upazila")
get shapefile for different administrative levels
get_map(level = "country")
get_map(level = "country")
level |
administrative level of bangladesh. Should be one of: "country", "division", "district", "upazila","union' |
shapefile for given administrative level
country <- get_map("country") division <- get_map("division") district <- get_map("district")
country <- get_map("country") division <- get_map("division") district <- get_map("district")
A shapefile containing level 0 administrative boundaries
map_country
map_country
A shapefile with 3 variables:
country (admin level 0) name
admin level 0 codes
MULTIPOLYGON for administrative areas
Bangladesh Bureau of Statistics
A shapefile containing level 2 administrative boundaries
map_district
map_district
A shapefile with 7 variables:
district (admin level 2) names
admin level 2 codes
division (admin level 1) names
admin level 1 codes
country (admin level 0) name
admin level 0 codes
MULTIPOLYGON for administrative areas
Bangladesh Bureau of Statistics
A shapefile containing level 1 administrative boundaries
map_division
map_division
A shapefile with 5 variables:
division (admin level 1) names
admin level 1 codes
country (admin level 0) name
admin level 0 codes
MULTIPOLYGON for administrative areas
Bangladesh Bureau of Statistics
A shapefile containing level 4 administrative boundaries
map_union
map_union
A shapefile with 11 variables:
upazilla (admin level 4) names
admin level 4 codes
upazilla (admin level 3) names
admin level 3 codes
district (admin level 2) names
admin level 2 codes
division (admin level 1) names
admin level 1 codes
country (admin level 0) name
admin level 0 codes
MULTIPOLYGON for administrative areas
Bangladesh Bureau of Statistics
A shapefile containing level 3 administrative boundaries
map_upazila
map_upazila
A shapefile with 9 variables:
upazilla (admin level 3) names
admin level 3 codes
district (admin level 2) names
admin level 2 codes
division (admin level 1) names
admin level 1 codes
country (admin level 0) name
admin level 0 codes
MULTIPOLYGON for administrative areas
Bangladesh Bureau of Statistics
A dataset containing total population, population by age groups and gender for each districts (administrative level 2) in bangladesh
pop_district_2011
pop_district_2011
A data frame with 64 rows and 25 variables:
district (admin level 2) names
district codes
division (admin level 1) names
division codes
population in 2011
population in age group 0-4
population in age group 5-9
population in age group 10-14
population in age group 15-19
population in age group 20-24
population in age group 25-29
population in age group 30-34
population in age group 35-39
population in age group 40-44
population in age group 45-49
population in age group 50-54
population in age group 55-59
population in age group 60-64
population in age group 65-69
population in age group 70-74
population in age group 75-80
population in age group 80+
child population
male population
female population
Bangladesh Bureau of Statistics
A dataset containing total population, population by age groups and gender for each divisions (administrative level 1) in bangladesh
pop_division_2011
pop_division_2011
A data frame with 64 rows and 23 variables:
division (admin level 1) names
division codes
population in 2011
population in age group 0-4
population in age group 5-9
population in age group 10-14
population in age group 15-19
population in age group 20-24
population in age group 25-29
population in age group 30-34
population in age group 35-39
population in age group 40-44
population in age group 45-49
population in age group 50-54
population in age group 55-59
population in age group 60-64
population in age group 65-69
population in age group 70-74
population in age group 75-80
population in age group 80+
child population
male population
female population
Bangladesh Bureau of Statistics
A dataset containing total population, population by age groups and gender for each upazilas (administrative level 3) in bangladesh
pop_upazila_2011
pop_upazila_2011
A data frame with 64 rows and 29 variables:
upazila (admin level 3) names
upazila codes
district (admin level 2) names
district codes
division (admin level 1) names
division codes
population in 2011
population in age group 0-4
population in age group 5-9
population in age group 10-14
population in age group 15-19
population in age group 20-24
population in age group 25-29
population in age group 30-34
population in age group 35-39
population in age group 40-44
population in age group 45-49
population in age group 50-54
population in age group 55-59
population in age group 60-64
population in age group 65-69
population in age group 70-74
population in age group 75-80
population in age group 80+
child population
male population
female population
Bangladesh Bureau of Statistics